From f2c8d5da9415424b664cd15166de9c9cdca9becc Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 6 Dec 2004 05:51:23 +0000 Subject: [PATCH] Only pass one string pointer to sprintf (Should have been removed with the DIV tag) --- src/sbbs3/js_global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index cdc859c53d..bd8b4c7e59 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -1072,7 +1072,7 @@ js_html_encode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva free(tmpbuf); return(JS_FALSE); } - j=sprintf(outbuf,"<span style=\"%s\">",htmlansi[7],htmlansi[7]); + j=sprintf(outbuf,"<span style=\"%s\">",htmlansi[7]); clear_screen=j; for(i=0;tmpbuf[i];i++) { if(j>(obsize/2)) /* Completely arbitrary here... must be carefull with this eventually ToDo */ -- GitLab