r55699 - python/branches/cpy_merge/Modules/_string_iomodule.c
30 May
2007
30 May
'07
3:49 p.m.
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;
6241
Age (days ago)
6241
Last active (days ago)
0 comments
1 participants
participants (1)
-
alexandre.vassalotti