Commit 88b6a093 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Fix 'stack smashing' bug

Was using the 'n' format character which expects a Py_ssize_t*, but was passing an int*.
Switch to using the 'i' character.
parent 2c713a95
......@@ -15,7 +15,7 @@ slots_tester_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL;
int n;
if (!PyArg_ParseTuple(args, "n", &n))
if (!PyArg_ParseTuple(args, "i", &n))
return NULL;
/* create attrgetterobject structure */
......
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