Lets try this...
This commit is contained in:
parent
553d2ca686
commit
d579190bc9
@ -226,7 +226,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
|
|
||||||
msgbuf = (char *)malloc(lenbytes);
|
msgbuf = (char *)malloc(lenbytes);
|
||||||
|
|
||||||
memset(msgbuf, '\0', lenbytes);
|
memset(msgbuf, ' ', lenbytes);
|
||||||
|
|
||||||
JAM_ReadMsgText(jb, jmh.TxtOffset, jmh.TxtLen, msgbuf);
|
JAM_ReadMsgText(jb, jmh.TxtOffset, jmh.TxtLen, msgbuf);
|
||||||
|
|
||||||
@ -238,10 +238,10 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
msgptr++;
|
msgptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
msgptr = &msgbuf[lenbytes-1];
|
for (z=0;z<lenbytes;z++) {
|
||||||
while (*msgptr == '\0') {
|
if (msgbuf[z] == '\0') {
|
||||||
*msgptr = ' ';
|
msgbuf[z] = ' ';
|
||||||
msgptr--;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(buffer, 7, "%d", len);
|
snprintf(buffer, 7, "%d", len);
|
||||||
|
Reference in New Issue
Block a user