summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-18 13:12:10 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-18 13:12:10 (GMT)
commit5550731d9cf5bca2379b15d5238ee5a39ebc6ce3 (patch)
treeb5fffb2ee6c7f523ced6f49f9ab35bc22413cbcf /Objects/unicodeobject.c
parent9992835c6edd105e30722d76c97e4d84a5075a48 (diff)
downloadcpython-5550731d9cf5bca2379b15d5238ee5a39ebc6ce3.zip
cpython-5550731d9cf5bca2379b15d5238ee5a39ebc6ce3.tar.gz
cpython-5550731d9cf5bca2379b15d5238ee5a39ebc6ce3.tar.bz2
Revert last checkin: _PyUnicode_New() allocates space
for one more character anyway.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9937705..7e455a5 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;