Skip to content
Snippets Groups Projects
Commit 9bd824e9 authored by rswindell's avatar rswindell
Browse files

Bugfix: printing % characters using log() tried to expand printf specifiers.

parent 0bf18f80
Branches
Tags
No related merge requests found
...@@ -158,7 +158,7 @@ js_log(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) ...@@ -158,7 +158,7 @@ js_log(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if((str=JS_ValueToString(cx, argv[i]))==NULL) if((str=JS_ValueToString(cx, argv[i]))==NULL)
return(JS_FALSE); return(JS_FALSE);
fprintf(errfp,JS_GetStringBytes(str)); fprintf(errfp,"%s",JS_GetStringBytes(str));
} }
if(argc) if(argc)
fprintf(errfp,"\n"); fprintf(errfp,"\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment