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
Compare Revisions
f48239aa8dc362641994cdfaac4a87724d881d65...2bf9c6cc04b6b2c3b1534585c40767d4a5698384
Commits (1)
Fix CID 229603: String not null terminated
· 2bf9c6cc
Rob Swindell
authored
Mar 17, 2022
2bf9c6cc
Show 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
);
...
...