comparison 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
comparison
equal deleted inserted replaced
287:b033b16dd290 288:c4a989a0d6cf
217 if (n < 0) 217 if (n < 0)
218 { 218 {
219 xfree (result); 219 xfree (result);
220 return NULL; 220 return NULL;
221 } 221 }
222 result[n] = 0;
222 return result; 223 return result;
223 } 224 }
224 225
225 /* Adapted from GPGOL rev. e512053 */ 226 /* Adapted from GPGOL rev. e512053 */
226 wchar_t * 227 wchar_t *

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