Commit 9992835c authored by Walter Dörwald's avatar Walter Dörwald

Allocate one more character, so that the terminating

nullbyte can be copied.
parent 68937b4c
......@@ -427,7 +427,7 @@ PyObject *PyUnicode_FromString(const char *u)
}
}
unicode = _PyUnicode_New(size);
unicode = _PyUnicode_New(size+1);
if (!unicode)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment