Revert last checkin: _PyUnicode_New() allocates space

for one more character anyway.
This commit is contained in:
Walter Dörwald 2007-05-18 13:12:10 +00:00
parent 9992835c6e
commit 5550731d9c

View File

@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u)
}
}
unicode = _PyUnicode_New(size+1);
unicode = _PyUnicode_New(size);
if (!unicode)
return NULL;