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
2bf9c6cc
Commit
2bf9c6cc
authored
Mar 17, 2022
by
Rob Swindell
💬
Browse files
Fix CID 229603: String not null terminated
parent
f48239aa
Pipeline
#2904
passed with stage
in 9 minutes and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/sbbs3/fmsgdump.c
src/sbbs3/fmsgdump.c
+2
-1
No files found.
src/sbbs3/fmsgdump.c
View file @
2bf9c6cc
...
...
@@ -86,9 +86,10 @@ int msgdump(FILE* fp, const char* fname)
if
(
hdr
.
time
[
sizeof
(
hdr
.
time
)
-
1
]
!=
0
)
fprintf
(
stderr
,
"%s Unterminated 'time' field
\n
"
,
fname
);
TERMINATE
(
hdr
.
subj
);
printf
(
"Subj: %.*s
\n
"
,
(
int
)
sizeof
(
hdr
.
subj
)
-
1
,
hdr
.
subj
);
printf
(
"Attr: 0x%04hX %s
\n
"
,
hdr
.
attr
,
fmsgattr_str
(
hdr
.
attr
));
TERMINATE
(
hdr
.
to
);
printf
(
"To : %.*s (%u:%u/%u.%u)
\n
"
,
(
int
)
sizeof
(
hdr
.
to
)
-
1
,
hdr
.
to
,
hdr
.
destzone
,
hdr
.
destnet
,
hdr
.
destnode
,
hdr
.
destpoint
);
TERMINATE
(
hdr
.
from
);
...
...
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