From b600fe90a7d65e63e29941b3222cfba6880d3352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 27 Jul 2004 15:03:53 +0000 Subject: Switch arguments to memset (kudos to MSVC C4318 for finding that) --- Modules/binascii.c | 4 ++-- 1 file 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) { -- cgit v0.12