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
eb7e6bbf
Commit
eb7e6bbf
authored
Mar 03, 2022
by
Rob Swindell
💬
Browse files
Fix CID 174378: Argument cannot be negative
parent
431a70b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+7
-0
No files found.
src/sbbs3/main.cpp
View file @
eb7e6bbf
...
...
@@ -4329,6 +4329,13 @@ void node_thread(void* arg)
sbbs
->
clearvars
(
&
sbbs
->
main_csi
);
sbbs
->
main_csi
.
length
=
(
long
)
filelength
(
file
);
if
(
sbbs
->
main_csi
.
length
<
1
)
{
close
(
file
);
sbbs
->
errormsg
(
WHERE
,
ERR_LEN
,
str
,
sbbs
->
main_csi
.
length
);
sbbs
->
hangup
();
break
;
}
if
((
sbbs
->
main_csi
.
cs
=
(
uchar
*
)
malloc
(
sbbs
->
main_csi
.
length
))
==
NULL
)
{
close
(
file
);
sbbs
->
errormsg
(
WHERE
,
ERR_ALLOC
,
str
,
sbbs
->
main_csi
.
length
);
...
...
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