From: Jeff R. <dv...@us...> - 2013-11-21 21:37:02
|
Update of /cvsroot/aolserver/aolserver/nsd In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11617 Modified Files: quotehtml.c Log Message: fix to avoid creating invalid strings when quoting empty string Index: quotehtml.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nsd/quotehtml.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** quotehtml.c 18 Jul 2005 23:33:23 -0000 1.5 --- quotehtml.c 21 Nov 2013 21:37:00 -0000 1.6 *************** *** 62,66 **** end = string + strlen(string); ! do { next = Tcl_UtfNext(string); switch (*string) { --- 62,66 ---- end = string + strlen(string); ! while (string < end) { next = Tcl_UtfNext(string); switch (*string) { *************** *** 90,94 **** } string = next; ! } while (string < end); } --- 90,94 ---- } string = next; ! }; } |