mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
[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:
parent
3662d2aec7
commit
bfb0116bea
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user