# HG changeset patch # User Andre Heinecke # Date 1396446544 0 # Node ID c4a989a0d6cf1b5e23b195458548ecb9c4037b02 # Parent b033b16dd290f55db6ed329bd3442374cf4ed3c8 Ensure that the utf8 string is always 0 terminated. diff -r b033b16dd290 -r c4a989a0d6cf common/strhelp.c --- a/common/strhelp.c Wed Apr 02 13:48:31 2014 +0000 +++ b/common/strhelp.c Wed Apr 02 13:49:04 2014 +0000 @@ -219,6 +219,7 @@ xfree (result); return NULL; } + result[n] = 0; return result; }