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

First attempt to fix quote_msg()

parent d289a00e
No related branches found
No related tags found
No related merge requests found
......@@ -715,6 +715,10 @@ js_quote_msg(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
if((outbuf=(char*)malloc((strlen(inbuf)*strlen(prefix))+1))==NULL)
return(JS_FALSE);
len-=strlen(prefix);
if(len<=0)
return(JS_FALSE);
if((linebuf=(char*)malloc(len+1))==NULL)
return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment