Commit b1423a4d authored by rswindell's avatar rswindell
Browse files

Replaces #! line with blank line to keep line counter accurate.

parent ebbc709e
......@@ -559,7 +559,7 @@ long js_exec(const char *fname, char** args)
#ifdef __unix__ /* Support Unix Shell Scripts that start with #!/path/to/jsexec */
if(line_no==1 && strncmp(line,"#!",2)==0)
strcpy(line,"\n"); /* To keep line count correct */
if((js_buf=realloc(js_buf,js_buflen+strlen(line)))==NULL) {
fprintf(errfp,"!Error allocating %u bytes of memory\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment