Skip to content
Snippets Groups Projects
Commit f2c8d5da authored by deuce's avatar deuce
Browse files

Only pass one string pointer to sprintf (Should have been removed with the

DIV tag)
parent 40a32825
No related branches found
No related tags found
No related merge requests found
...@@ -1072,7 +1072,7 @@ js_html_encode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva ...@@ -1072,7 +1072,7 @@ js_html_encode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva
free(tmpbuf); free(tmpbuf);
return(JS_FALSE); return(JS_FALSE);
} }
j=sprintf(outbuf,"<span style=\"%s\">",htmlansi[7],htmlansi[7]); j=sprintf(outbuf,"<span style=\"%s\">",htmlansi[7]);
clear_screen=j; clear_screen=j;
for(i=0;tmpbuf[i];i++) { for(i=0;tmpbuf[i];i++) {
if(j>(obsize/2)) /* Completely arbitrary here... must be carefull with this eventually ToDo */ if(j>(obsize/2)) /* Completely arbitrary here... must be carefull with this eventually ToDo */
......
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