TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: andrew clarke
from: Michael Dukelsky
date: 2021-02-14 22:50:00
subject: Squish __ftsc_date bug /

Hello andrew,

Sunday February 14 2021, andrew clarke wrote to Oli:

 ac> api_jam.c:JamReadMsg() has this:

 ac>         scombo = (SCOMBO *)(&(msg->date_written));
 ac>         scombo = TmDate_to_DosDate(s_time, scombo);
 ac>         /* ftsdate = msg->__ftsc_date; */
 ac>         ftsdate = (unsigned char *)sc_time(scombo, (char
 ac> *)(msg->__ftsc_date));

 ac> But maybe the correct code should be:

 ac>         if (*msg->__ftsc_date)
 ac>         {
 ac>             ftsdate = msg->__ftsc_date;
 ac>         }
 ac>         else
 ac>         {
 ac>             scombo = (SCOMBO *)(&(msg->date_written));
 ac>             scombo = TmDate_to_DosDate(s_time, scombo);
 ac>             ftsdate = (unsigned char *)sc_time(scombo, (char
 ac> *)(msg->__ftsc_date));
 ac>         }

"ftsdate" variable is assigned but it is never used, so I've already commented it out but not in master branch yet.

Michael

... node (at) f1042 (dot) ru
--- GoldED+/LNX 1.1.5-b20180707
                   
* Origin: Moscow, Russia (2:5020/1042)

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™.