Commit 5550731d authored by Walter Dörwald's avatar Walter Dörwald

Revert last checkin: _PyUnicode_New() allocates space

for one more character anyway.
parent 9992835c
...@@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u) ...@@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u)
} }
} }
unicode = _PyUnicode_New(size+1); unicode = _PyUnicode_New(size);
if (!unicode) if (!unicode)
return NULL; return NULL;
......
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