https://gitlab.synchro.net/main/sbbs/-/commit/ee6a293388ce1c4036e37c44
Modified Files:
src/sbbs3/fidopkt.h pktdump.c sbbsecho.c
Log Message:
SBBSecho/PktDump: keep all of a 20-character DateTime
f8bebadf2b (only-4-lace, 2026-11-29) accepted a packed-message DateTime
of 20 characters with no NUL, but SBBSecho then copied it into the
20-byte (NUL-terminated) hdr.time, and PktDump terminated it in place
before writing a recovered packet, so the last character was lost: CNet's
"15 Dec 125 18:01:00" was imported, forwarded and recovered as
"15 Dec 125 18:01:0". The other form seen, a standard date with a
trailing space instead of the NUL, lost only the space.
A new fpkdmsg_time_normalize() in fidopkt.h rewrites a 20-character
DateTime in the standard "DD Mon YY HH:MM:SS" form when it parses as
one, else removes trailing spaces and truncates. PktDump still displays
the DateTime as received.
20 characters followed by a NUL could be a 21-byte variable-length
DateTime or an unterminated one followed by an empty toUserName; it is
still read as the latter, since no software is known to write the
former. Both programs now say so when they see one.
Also, fmsgtime() read a date with no time ("01 Jan 86") as a SEAdog
format date, day 0 of December 2000, since 10b0a7426e (sword-40-till, 2026-11-29). A SEAdog date starts with a day name, so it matches none of
the regular format's fields; fall back to it only when fewer than three
(day, month, year) match.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net