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
89f2b1eb
Commit
89f2b1eb
authored
Apr 23, 2020
by
rswindell
Browse files
lookup_netuser() to return false if passed a NULL or empty string.
parent
3c30499b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/fido.cpp
src/sbbs3/fido.cpp
+1
-1
No files found.
src/sbbs3/fido.cpp
View file @
89f2b1eb
...
...
@@ -66,7 +66,7 @@ bool sbbs_t::lookup_netuser(char *into)
int
i
;
FILE
*
stream
;
if
(
strchr
(
into
,
'@'
))
if
(
into
==
NULL
||
into
[
0
]
==
0
||
strchr
(
into
,
'@'
))
return
(
false
);
SAFECOPY
(
to
,
into
);
strupr
(
to
);
...
...
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