[Python-checkins] r55699 - python/branches/cpy_merge/Modules/_string_iomodule.c
alexandre.vassalotti
python-checkins at python.org
Thu May 31 00:49:40 CEST 2007
Author: alexandre.vassalotti
Date: Thu May 31 00:49:35 2007
New Revision: 55699
Modified:
python/branches/cpy_merge/Modules/_string_iomodule.c
Log:
Fixed memcpy() call.
Modified: python/branches/cpy_merge/Modules/_string_iomodule.c
==============================================================================
--- python/branches/cpy_merge/Modules/_string_iomodule.c (original)
+++ python/branches/cpy_merge/Modules/_string_iomodule.c Thu May 31 00:49:35 2007
@@ -79,7 +79,7 @@
}
}
- memcpy(self->buf + self->pos, c, l);
+ memcpy(self->buf + self->pos, c, l * sizeof(Py_UNICODE));
assert(self->pos + l < PY_SSIZE_T_MAX);
self->pos += l;
More information about the Python-checkins
mailing list