Kaydet (Commit) 71e91a35 authored tarafından Victor Stinner's avatar Victor Stinner

Fix PyUnicode_AsWideCharString(): set *size if size is not NULL

üst 15d597a2
......@@ -1215,6 +1215,8 @@ PyUnicode_AsWideCharString(PyUnicodeObject *unicode,
return NULL;
}
unicode_aswidechar(unicode, buffer, buflen);
if (size)
*size = buflen;
return buffer;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment