Skip to content
Snippets Groups Projects
Commit 5390d74d authored by rswindell's avatar rswindell
Browse files

recvline method terminates at first linefeed even if its the first character of

the string (for broken TCP apps that send LF-terminted lines).
parent 8e4c849f
No related branches found
No related tags found
No related merge requests found
......@@ -753,7 +753,7 @@ js_recvline(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
break;
}
if(ch=='\n' && i>=1)
if(ch=='\n' /* && i>=1 */) /* Mar-9-2003: terminate on sole LF */
break;
buf[i++]=ch;
......
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