Fixes for qwkscan
This commit is contained in:
parent
1a6637aa03
commit
b4ffc3a617
@ -183,7 +183,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
} else {
|
} else {
|
||||||
len = jsp->Fields[z]->DatLen;
|
len = jsp->Fields[z]->DatLen;
|
||||||
}
|
}
|
||||||
memset(qh.MsgSubj, 0, 25);
|
memset(qh.MsgSubj, ' ', 25);
|
||||||
memcpy(qh.MsgSubj, jsp->Fields[z]->Buffer, len);
|
memcpy(qh.MsgSubj, jsp->Fields[z]->Buffer, len);
|
||||||
}
|
}
|
||||||
if (jsp->Fields[z]->LoID == JAMSFLD_SENDERNAME) {
|
if (jsp->Fields[z]->LoID == JAMSFLD_SENDERNAME) {
|
||||||
@ -192,7 +192,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
} else {
|
} else {
|
||||||
len = jsp->Fields[z]->DatLen;
|
len = jsp->Fields[z]->DatLen;
|
||||||
}
|
}
|
||||||
memset(qh.MsgFrom, 0, 25);
|
memset(qh.MsgFrom, ' ', 25);
|
||||||
memcpy(qh.MsgFrom, jsp->Fields[z]->Buffer, len);
|
memcpy(qh.MsgFrom, jsp->Fields[z]->Buffer, len);
|
||||||
}
|
}
|
||||||
if (jsp->Fields[z]->LoID == JAMSFLD_RECVRNAME) {
|
if (jsp->Fields[z]->LoID == JAMSFLD_RECVRNAME) {
|
||||||
@ -201,7 +201,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
} else {
|
} else {
|
||||||
len = jsp->Fields[z]->DatLen;
|
len = jsp->Fields[z]->DatLen;
|
||||||
}
|
}
|
||||||
memset(qh.MsgTo, 0, 25);
|
memset(qh.MsgTo, ' ', 25);
|
||||||
memcpy(qh.MsgTo, jsp->Fields[z]->Buffer, len);
|
memcpy(qh.MsgTo, jsp->Fields[z]->Buffer, len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
|||||||
msgptr++;
|
msgptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
msgptr = msgbuf + lenbytes;
|
msgptr = &msgbuf[lenbytes];
|
||||||
while (*msgptr == '\0') {
|
while (*msgptr == '\0') {
|
||||||
*msgptr = ' ';
|
*msgptr = ' ';
|
||||||
msgptr--;
|
msgptr--;
|
||||||
|
Reference in New Issue
Block a user