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;
! };
}
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
aolserver-commits mailing list
aolserve...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-commits