Commit 804cdca7 authored by Guido van Rossum's avatar Guido van Rossum

Don't accept null bytes in the key.

parent a861d552
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment