Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
4f9a8b20
Commit
4f9a8b20
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Address a couple of Coverity-reported defects
CID 452331 CID 452330
parent
b3c63244
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/writemsg.cpp
+2
-2
2 additions, 2 deletions
src/sbbs3/writemsg.cpp
with
2 additions
and
2 deletions
src/sbbs3/writemsg.cpp
+
2
−
2
View file @
4f9a8b20
...
...
@@ -933,7 +933,7 @@ uint sbbs_t::msgeditor(char *buf, const char *top, char *title, uint maxlines, u
rioctl
(
IOCS
|
ABORT
);
if
((
str
=
strListDivide
(
NULL
,
buf
,
"
\n
"
))
==
NULL
)
{
errormsg
(
WHERE
,
ERR_ALLOC
,
"msgeditor"
,
s
izeof
(
char
*
)
*
(
maxlines
+
1
));
errormsg
(
WHERE
,
ERR_ALLOC
,
"msgeditor"
,
s
trlen
(
buf
));
return
(
0
);
}
lines
=
strListCount
(
str
);
...
...
@@ -963,7 +963,7 @@ uint sbbs_t::msgeditor(char *buf, const char *top, char *title, uint maxlines, u
sync
();
rioctl
(
IOSM
|
ABORT
);
while
(
online
)
{
if
(
line
<
0
)
if
(
(
int
)
line
<
0
)
line
=
0
;
if
((
int
)
line
>
(
int
)
maxlines
-
10
)
{
if
(
line
>=
maxlines
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment