From 9992835c6edd105e30722d76c97e4d84a5075a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 18 May 2007 11:30:40 +0000 Subject: Allocate one more character, so that the terminating nullbyte can be copied. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ PyObject *PyUnicode_FromString(const char *u) } } - unicode = _PyUnicode_New(size); + unicode = _PyUnicode_New(size+1); if (!unicode) return NULL; -- cgit v0.12