Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 804cdca

Browse files
committed
Don't accept null bytes in the key.
1 parent a861d55 commit 804cdca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/rotormodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,9 @@ rotor_rotor(PyObject *self, PyObject *args)
597597
{
598598
Rotorobj *r;
599599
char *string;
600-
int len;
601600
int num_rotors = 6;
602601

603-
if (!PyArg_ParseTuple(args, "s#|i:newrotor", &string, &len, &num_rotors))
602+
if (!PyArg_ParseTuple(args, "s|i:newrotor", &string, &num_rotors))
604603
return NULL;
605604

606605
r = rotorobj_new(num_rotors, string);

0 commit comments

Comments
 (0)