Fixes for qwkscan

This commit is contained in:
Andrew Pamment 2018-10-27 22:51:14 +10:00
parent 1a6637aa03
commit b4ffc3a617

View File

@ -183,7 +183,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
} else {
len = jsp->Fields[z]->DatLen;
}
memset(qh.MsgSubj, 0, 25);
memset(qh.MsgSubj, ' ', 25);
memcpy(qh.MsgSubj, jsp->Fields[z]->Buffer, len);
}
if (jsp->Fields[z]->LoID == JAMSFLD_SENDERNAME) {
@ -192,7 +192,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
} else {
len = jsp->Fields[z]->DatLen;
}
memset(qh.MsgFrom, 0, 25);
memset(qh.MsgFrom, ' ', 25);
memcpy(qh.MsgFrom, jsp->Fields[z]->Buffer, len);
}
if (jsp->Fields[z]->LoID == JAMSFLD_RECVRNAME) {
@ -201,7 +201,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
} else {
len = jsp->Fields[z]->DatLen;
}
memset(qh.MsgTo, 0, 25);
memset(qh.MsgTo, ' ', 25);
memcpy(qh.MsgTo, jsp->Fields[z]->Buffer, len);
}
}
@ -238,7 +238,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
msgptr++;
}
msgptr = msgbuf + lenbytes;
msgptr = &msgbuf[lenbytes];
while (*msgptr == '\0') {
*msgptr = ' ';
msgptr--;