Subj : Sqfix update To : Bo Simonsen From : Bob Jones Date : Sun Oct 05 2003 07:51 am 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) .