summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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;