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
bb18309c
Commit
bb18309c
authored
Mar 02, 2022
by
Rob Swindell
💬
Browse files
Fix CID 33239: Argument cannot be negative
parent
9169e4aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/sbbs3/writemsg.cpp
src/sbbs3/writemsg.cpp
+6
-1
No files found.
src/sbbs3/writemsg.cpp
View file @
bb18309c
...
...
@@ -861,6 +861,11 @@ void sbbs_t::removeline(char *str, char *str2, char num, char skip)
return
;
}
flen
=
(
long
)
filelength
(
file
);
if
(
flen
<
0
)
{
close
(
file
);
errormsg
(
WHERE
,
ERR_CHK
,
str
,
flen
);
return
;
}
slen
=
strlen
(
str2
);
if
((
buf
=
(
char
*
)
malloc
(
flen
))
==
NULL
)
{
close
(
file
);
...
...
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