summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-10 19:46:18 (GMT)
committerGuido van Rossum <guido@python.org>2002-06-10 19:46:18 (GMT)
commit804cdca7ea38e197e8ac6a9a748a25dc19543079 (patch)
tree70e402abfaf868c263a2bc6c0bbb9179dfce3eee /Modules
parenta861d552c3e8925384fdeb6fdd18e5d839a36ac5 (diff)
downloadcpython-804cdca7ea38e197e8ac6a9a748a25dc19543079.zip
cpython-804cdca7ea38e197e8ac6a9a748a25dc19543079.tar.gz
cpython-804cdca7ea38e197e8ac6a9a748a25dc19543079.tar.bz2
Don't accept null bytes in the key.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/rotormodule.c3
1 files changed, 1 insertions, 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);