Lets try this...

This commit is contained in:
Andrew Pamment 2018-10-27 23:10:59 +10:00
parent 553d2ca686
commit d579190bc9

View File

@ -226,7 +226,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
msgbuf = (char *)malloc(lenbytes);
memset(msgbuf, '\0', lenbytes);
memset(msgbuf, ' ', lenbytes);
JAM_ReadMsgText(jb, jmh.TxtOffset, jmh.TxtLen, msgbuf);
@ -238,10 +238,10 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
msgptr++;
}
msgptr = &msgbuf[lenbytes-1];
while (*msgptr == '\0') {
*msgptr = ' ';
msgptr--;
for (z=0;z<lenbytes;z++) {
if (msgbuf[z] == '\0') {
msgbuf[z] = ' ';
}
}
snprintf(buffer, 7, "%d", len);