TIP: Click on subject to list as thread! ANSI
echo: tub
to: Bo Simonsen
from: Bob Jones
date: 2003-10-05 06:51:18
subject: Sqfix update

BS> Hello All!

 BS> I just noticed that the NULL-termination problem is 
 BS> there still, but only for messages written by timEd, I 
 BS> bet there is some problem in the XMSGAPI, or Sqfix 
 BS> doesn't read the SQHDR structure correctly.

 BS> The problem might be a wrong message length.. I'll try 
 BS> making a Quick-And-Dirty [tM] fix, so we search the 
 BS> message from behind and +1 will 
 BS> force a \0..

 BS> Does anyone have a better solution?

Are we hitting string differences because of MS-DOS  vs
Unix  issues?  The code may need some cleanup to convert
Unix type  (single) character to MS-DOS 
(double) charcters....  This might impact calculated lengths....  And maybe
the code is attempting to correct for this issue, and forgetting to extend
the string length, overwriting the terminating null character when the Unix
to DOS "fix" is applied....

The above is just a hunch.....

Another thought.....  Is the structure that is being read and/or written to
a file a packed structure?  If not, then the message length might not be
getting read and/or written correctly.....

Take care.....

Bob Jones, 1:343/41


--- Maximus/2 3.01
* Origin: Top Hat 2 BBS (1:343/41)
SEEN-BY: 633/267 270
@PATH: 343/41 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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