summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-18 13:12:10 +0000
committerWalter Dörwald <walter@livinglogic.de>2007-05-18 13:12:10 +0000
commit722ca0381ce83d117e3f91df0a3e87fc6a78dcc7 (patch)
tree6782ac3d093cff0ba7a75f74853a6eab8b65bb81 /Objects
parentfa90f2ed1c553cc356711f78d40647265a226ddd (diff)
downloadcpython-722ca0381ce83d117e3f91df0a3e87fc6a78dcc7.tar.gz
Revert last checkin: _PyUnicode_New() allocates space
for one more character anyway.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9937705eef..7e455a5e32 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;