From 804cdca7ea38e197e8ac6a9a748a25dc19543079 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 10 Jun 2002 19:46:18 +0000 Subject: Don't accept null bytes in the key. --- Modules/rotormodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index ea91af0..0377832 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c @@ -597,10 +597,9 @@ rotor_rotor(PyObject *self, PyObject *args) { Rotorobj *r; char *string; - int len; int num_rotors = 6; - if (!PyArg_ParseTuple(args, "s#|i:newrotor", &string, &len, &num_rotors)) + if (!PyArg_ParseTuple(args, "s|i:newrotor", &string, &num_rotors)) return NULL; r = rotorobj_new(num_rotors, string); -- cgit v0.12