commit | 9992835c6edd105e30722d76c97e4d84a5075a48 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Fri May 18 11:30:40 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Fri May 18 11:30:40 2007 +0000 |
tree | 58c7ccb461572586cc76f2b29e89c57dcd50fb55 | |
parent | 68937b4cbcc3e88d4207e6391a311f9b7d067b71 [diff] |
Allocate one more character, so that the terminating nullbyte can be copied.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 7e455a5..9937705 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -427,7 +427,7 @@ } } - unicode = _PyUnicode_New(size); + unicode = _PyUnicode_New(size+1); if (!unicode) return NULL;