[mw-devel] MW3 r1062 - trunk/src
firefury at sucs.org
firefury at sucs.org
Fri Jan 9 10:20:00 GMT 2009
Author: firefury
Date: 2009-01-09 10:19:59 +0000 (Fri, 09 Jan 2009)
New Revision: 1062
Modified:
trunk/src/iconv.c
Log:
Fix off-by-one error when terminating a string in iconv.c
Modified: trunk/src/iconv.c
===================================================================
--- trunk/src/iconv.c 2009-01-09 10:01:47 UTC (rev 1061)
+++ trunk/src/iconv.c 2009-01-09 10:19:59 UTC (rev 1062)
@@ -88,7 +88,7 @@
if(local_charset!=NULL) {
output_charset = output_charset_ignore;
snprintf(output_charset_ignore, 50, "%s//TRANSLIT", local_charset);
- output_charset_ignore[50]='\0';
+ output_charset_ignore[49]='\0';
} else {
output_charset = null_string;
More information about the mw-devel
mailing list