[Python-3000-checkins] r55429 - python/branches/py3k-struni/Objects/unicodeobject.c

walter.doerwald python-3000-checkins at python.org
Fri May 18 15:12:12 CEST 2007


Author: walter.doerwald
Date: Fri May 18 15:12:10 2007
New Revision: 55429

Modified:
   python/branches/py3k-struni/Objects/unicodeobject.c
Log:
Revert last checkin: _PyUnicode_New() allocates space
for one more character anyway.


Modified: python/branches/py3k-struni/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k-struni/Objects/unicodeobject.c	(original)
+++ python/branches/py3k-struni/Objects/unicodeobject.c	Fri May 18 15:12:10 2007
@@ -427,7 +427,7 @@
 	}
     }
 
-    unicode = _PyUnicode_New(size+1);
+    unicode = _PyUnicode_New(size);
     if (!unicode)
         return NULL;
 


More information about the Python-3000-checkins mailing list