[Python-checkins] r85118 - python/branches/py3k/Objects/unicodeobject.c
victor.stinner
python-checkins at python.org
Wed Sep 29 19:55:13 CEST 2010
Author: victor.stinner
Date: Wed Sep 29 19:55:12 2010
New Revision: 85118
Log:
Fix PyUnicode_AsWideCharString(): set *size if size is not NULL
Modified:
python/branches/py3k/Objects/unicodeobject.c
Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c (original)
+++ python/branches/py3k/Objects/unicodeobject.c Wed Sep 29 19:55:12 2010
@@ -1215,6 +1215,8 @@
return NULL;
}
unicode_aswidechar(unicode, buffer, buflen);
+ if (size)
+ *size = buflen;
return buffer;
}
More information about the Python-checkins
mailing list