From 5550731d9cf5bca2379b15d5238ee5a39ebc6ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 18 May 2007 13:12:10 +0000 Subject: [PATCH] Revert last checkin: _PyUnicode_New() allocates space for one more character anyway. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9937705eef1..7e455a5e328 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;