]> granicus.if.org Git - python/commitdiff
Switch arguments to memset (kudos to MSVC C4318 for finding that)
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 27 Jul 2004 15:03:53 +0000 (15:03 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 27 Jul 2004 15:03:53 +0000 (15:03 +0000)
Modules/binascii.c

index f1f961516a2024d3898345ba339e35d99e2a5cac..5bd730c6f7e14b2470c29128f4fb6160dc380430 100644 (file)
@@ -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) {