diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 29404c3..1c083b2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1216,7 +1216,7 @@ PyUnicode_AsWideCharString(PyUnicodeObject *unicode, } unicode_aswidechar(unicode, buffer, buflen); if (size) - *size = buflen; + *size = buflen - 1; return buffer; } |