commit | 804cdca7ea38e197e8ac6a9a748a25dc19543079 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jun 10 19:46:18 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jun 10 19:46:18 2002 +0000 |
tree | 70e402abfaf868c263a2bc6c0bbb9179dfce3eee | |
parent | a861d552c3e8925384fdeb6fdd18e5d839a36ac5 [diff] |
Don't accept null bytes in the key.
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 @@ { 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);