diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-07-27 15:03:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-07-27 15:03:53 (GMT) |
commit | b600fe90a7d65e63e29941b3222cfba6880d3352 (patch) | |
tree | 750444934667741a0d14a4a89c93da79632d3059 /Modules | |
parent | 512efb464b8c840f03f80b5ed8da9672b7b3e246 (diff) | |
download | cpython-b600fe90a7d65e63e29941b3222cfba6880d3352.zip cpython-b600fe90a7d65e63e29941b3222cfba6880d3352.tar.gz cpython-b600fe90a7d65e63e29941b3222cfba6880d3352.tar.bz2 |
Switch arguments to memset (kudos to MSVC C4318 for finding that)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/binascii.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index f1f9615..5bd730c 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -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) { |