Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
ebbc709e
Commit
ebbc709e
authored
Jul 17, 2003
by
rswindell
Browse files
Bugfix in unix build (use of strncmp).
parent
fe130de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/jsexec.c
src/sbbs3/jsexec.c
+1
-1
No files found.
src/sbbs3/jsexec.c
View file @
ebbc709e
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment