Section One BBS

Welcome, Guest.


Subject: Squish __ftsc_date bug Date: Wed Feb 10 2021 08:32 pm
From: andrew clarke To: Oli

10 Feb 21 09:56, you wrote to Kai Richter:

 O>>> It's just a simple bug ...

 KR>> If it is it would be fixed already.
 KR>> You reported this one a year ago, don't you?

 Ol> I don't know why it doesn't get fixed. Maybe nobody wants to touch that
 Ol> part of the code anymore. A project where critical bugs doesn't get
 Ol> fixed anymore is kind of abandoned.

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

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

diff --git a/src/scanarea.c b/src/scanarea.c
index 60ec71bf..8926aa30 100644
-+- a/src/scanarea.c
+++ b/src/scanarea.c
@@ -88,7 +88,7 @@ void makeMsg(HMSG hmsg, XMSG xmsg, s_message * msg, s_area *
echo, int action)
     msg->destAddr.point = xmsg.dest.point;
     msg->attributes     = xmsg.attr & ~MSGLOCAL; /*  msg should not have
MSGLOCAL bit set */

-    sc_time((union stamp_combo *)&(xmsg.date_written), (char *)msg->datetime);
+    strcpy((char *)msg->datetime, (char *) xmsg.__ftsc_date);
     xstrcat(&msg->toUserName, (char *)xmsg.to);
     xstrcat(&msg->fromUserName, (char *)xmsg.from);
     xstrcat(&msg->subjectLine, (char *)xmsg.subj);

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

Previous Message       Next Message
In Reply To: Squish __ftsc_date bug (Oli)
Replies: Squish __ftsc_date bug (Oli)