From: Guido van Rossum Date: Mon, 10 Jun 2002 19:46:18 +0000 (+0000) Subject: Don't accept null bytes in the key. X-Git-Tag: v2.3c1~5392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=804cdca7ea38e197e8ac6a9a748a25dc19543079;p=python Don't accept null bytes in the key. --- diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index ea91af01bc..0377832918 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);