changeset 288:c4a989a0d6cf

Ensure that the utf8 string is always 0 terminated.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 02 Apr 2014 13:49:04 +0000
parents b033b16dd290
children 9ad00a3255f4
files common/strhelp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 

http://wald.intevation.org/projects/trustbridge/