Kaydet (Commit) b600fe90 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Switch arguments to memset (kudos to MSVC C4318 for finding that)

üst 512efb46
......@@ -1046,7 +1046,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
PyErr_NoMemory();
return NULL;
}
memset(odata, datalen, 0);
memset(odata, 0, datalen);
in = out = 0;
while (in < datalen) {
......@@ -1220,7 +1220,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
PyErr_NoMemory();
return NULL;
}
memset(odata, odatalen, 0);
memset(odata, 0, odatalen);
in = out = linelen = 0;
while (in < datalen) {
......
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