mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +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