TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Oli
from: andrew clarke
date: 2021-02-10 23:38:00
subject: Squish __ftsc_date bug

10 Feb 21 11:04, you wrote to me:

 ac>> I suspect the patch below fixes this, but I've not tested it.

 ac>> It's also necessary to verify it doesn't break when rescanning
 ac>> *.MSG and JAM bases.

 ac>> -    sc_time((union stamp_combo *)&(xmsg.date_written), (char
 ac>> *)msg->datetime); +    strcpy((char *)msg->datetime, (char *)
 ac>> xmsg.__ftsc_date);

 Ol> What happens if xmsg.__ftsc_date is empty? Local messages don't have an
 Ol> __ftsc_date and it could also be missing for other reasons (messages
 Ol> converted from another message base format, copied/moved in a message
 Ol> editor or tossed by a tosser that doesn't copy the __ftsc_date).

Good point. But it's easy to test for that condition.

if (*xmsg.__ftsc_date == '\0')
{
    /* __ftsc_date is empty, so use xmsg.date_written */
    sc_time( ...
}
else
{
    /* use xmsg.__ftsc_date */
    strcpy( ...
}

--- GoldED+/BSD 1.1.5-b20180707
                                        
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.