mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
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
Block a user