diff Objects/unicodeobject.c @ 41765:141e2aeffbaa

Revert last checkin: _PyUnicode_New() allocates space for one more character anyway.
author Walter Dörwald <walter@livinglogic.de>
date Fri, 18 May 2007 13:12:10 +0000
parents 8fe98f60eb6e
children d6aa7edf217a
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Fri May 18 11:30:40 2007 +0000
+++ b/Objects/unicodeobject.c	Fri May 18 13:12:10 2007 +0000
@@ -427,7 +427,7 @@
 	}
     }
 
-    unicode = _PyUnicode_New(size+1);
+    unicode = _PyUnicode_New(size);
     if (!unicode)
         return NULL;