mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Revert last checkin: _PyUnicode_New() allocates space
for one more character anyway.
This commit is contained in:
parent
9992835c6e
commit
5550731d9c
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u)
|
|||
}
|
||||
}
|
||||
|
||||
unicode = _PyUnicode_New(size+1);
|
||||
unicode = _PyUnicode_New(size);
|
||||
if (!unicode)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue