From ebbc709e9ca09959b0f2e7f846ca93197179bd03 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 17 Jul 2003 20:48:48 +0000 Subject: [PATCH] Bugfix in unix build (use of strncmp). --- src/sbbs3/jsexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/jsexec.c b/src/sbbs3/jsexec.c index c97e45adf3..a6677ef27a 100644 --- a/src/sbbs3/jsexec.c +++ b/src/sbbs3/jsexec.c @@ -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) { -- GitLab