Commit 2bf9c6cc authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix CID 229603: String not null terminated

parent f48239aa
Pipeline #2904 passed with stage
in 9 minutes and 25 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment