diff common/strhelp.c @ 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 c596568fa45b
children 4077eff1dd39
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/