mirror of https://github.com/python/cpython
Revert last checkin: _PyUnicode_New() allocates space
for one more character anyway.
This commit is contained in:
parent
9992835c6e
commit
5550731d9c
|
@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u)
|
|||
}
|
||||
}
|
||||
|
||||
unicode = _PyUnicode_New(size+1);
|
||||
unicode = _PyUnicode_New(size);
|
||||
if (!unicode)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue