From: Walter Dörwald Date: Fri, 18 May 2007 13:12:10 +0000 (+0000) Subject: Revert last checkin: _PyUnicode_New() allocates space X-Git-Tag: v3.0a1~927 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5550731d9cf5bca2379b15d5238ee5a39ebc6ce3;p=thirdparty%2FPython%2Fcpython.git Revert last checkin: _PyUnicode_New() allocates space for one more character anyway. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9937705eef1d..7e455a5e3287 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u) } } - unicode = _PyUnicode_New(size+1); + unicode = _PyUnicode_New(size); if (!unicode) return NULL;