Commit ebbc709e authored by rswindell's avatar rswindell
Browse files

Bugfix in unix build (use of strncmp).

parent fe130de5
......@@ -558,7 +558,7 @@ long js_exec(const char *fname, char** args)
break;
line_no++;
#ifdef __unix__ /* Support Unix Shell Scripts that start with #!/path/to/jsexec */
if(line_no==1 && strncmp(line,"#!",2))
if(line_no==1 && strncmp(line,"#!",2)==0)
continue;
#endif
if((js_buf=realloc(js_buf,js_buflen+strlen(line)))==NULL) {
......
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