Skip to content
Snippets Groups Projects
Commit 51be822b authored by rswindell's avatar rswindell
Browse files

Hopefully fix crash reported by McSteve in html_encode(), apparently caused

by the great "Fix warnings" commit by Deuce. :-)
parent dafbba34
No related branches found
No related tags found
No related merge requests found
......@@ -1537,9 +1537,9 @@ js_html_encode(JSContext *cx, uintN argc, jsval *arglist)
j--;
break;
default:
if(inbuf[i]&0x80) {
if(((uchar)inbuf[i])&0x80) {
if(exascii) {
ch=inbuf[i]^0x80;
ch=((uchar)inbuf[i])^0x80;
if(exasctbl[ch].name!=NULL)
j+=sprintf(tmpbuf+j,"&%s;",exasctbl[ch].name);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment