[project @ 2004-04-21 22:51:51 by jmb]

Fix crash in tolat1_pre. Thanks to John Tytgat for reporting.

svn path=/import/netsurf/; revision=800
This commit is contained in:
John Mark Bell 2004-04-21 22:51:51 +00:00
parent 3662d2aec7
commit bfb0116bea

View File

@ -160,6 +160,11 @@ char * tolat1_pre(xmlChar * s)
while (*s != 0) {
chars = length;
u = xmlGetUTF8Char((unsigned char *) s, &chars);
if (chars <= 0) {
s += 1;
length -= 1;
continue;
}
s += chars;
length -= chars;
if (u == 0x09 || u == 0x0a || u == 0x0d ||