Fixes for qwkscan

This commit is contained in:
Andrew Pamment 2018-10-27 23:01:48 +10:00
parent b4ffc3a617
commit 553d2ca686
4 changed files with 5 additions and 5 deletions

View File

@ -1082,7 +1082,7 @@ void bwave_upload_reply() {
snprintf(originlinebuffer, sizeof originlinebuffer, "\r--- %s\r * Origin: %s (@%d)\r", snprintf(originlinebuffer, sizeof originlinebuffer, "\r--- %s\r * Origin: %s (@%d)\r",
upl_hdr.reader_tear, tagline, mc->maginode); upl_hdr.reader_tear, tagline, mc->maginode);
} else if (mc->nettype == NETWORK_QWK) { } else if (mc->nettype == NETWORK_QWK) {
snprintf(originlinebuffer, sizeof originlinebuffer, "\r---\r \xFE MagickaBBS \xFE %s\r", snprintf(originlinebuffer, sizeof originlinebuffer, "\r---\r * MagickaBBS * %s\r",
tagline); tagline);
} else { } else {
snprintf(originlinebuffer, sizeof originlinebuffer, "\r"); snprintf(originlinebuffer, sizeof originlinebuffer, "\r");

View File

@ -469,7 +469,7 @@ char *external_editor(struct user_record *user, char *to, char *from, char *quot
VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline, VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline,
mc->maginode); mc->maginode);
} else if (mc->nettype == NETWORK_QWK && !email) { } else if (mc->nettype == NETWORK_QWK && !email) {
snprintf(buffer, sizeof buffer, "\r---\r \xFE MagickaBBS \xFE %s\r", snprintf(buffer, sizeof buffer, "\r---\r * MagickaBBS * %s\r",
tagline); tagline);
} else { } else {
snprintf(buffer, sizeof buffer, "\r"); snprintf(buffer, sizeof buffer, "\r");
@ -607,7 +607,7 @@ char *editor(struct user_record *user, char *quote, int quotelen, char *from, in
VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline, VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline,
mc->maginode); mc->maginode);
} else if (mc->nettype == NETWORK_QWK && !email) { } else if (mc->nettype == NETWORK_QWK && !email) {
snprintf(buffer, sizeof buffer, "\r---\r \xFE MagickaBBS \xFE %s\r", snprintf(buffer, sizeof buffer, "\r---\r * MagickaBBS * %s\r",
tagline); tagline);
} else { } else {
strlcpy(buffer, "\r", sizeof buffer); strlcpy(buffer, "\r", sizeof buffer);

View File

@ -1115,7 +1115,7 @@ int www_send_msg(struct user_record *user, char *to, char *subj, int conference,
snprintf(buffer, sizeof buffer, "\r\r--- MagickaBBS v%d.%d%s (%s/%s)\r * Origin: %s (@%d)\r", snprintf(buffer, sizeof buffer, "\r\r--- MagickaBBS v%d.%d%s (%s/%s)\r * Origin: %s (@%d)\r",
VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline, mc->maginode); VERSION_MAJOR, VERSION_MINOR, VERSION_STR, name.sysname, name.machine, tagline, mc->maginode);
} else if (mc->nettype == NETWORK_QWK) { } else if (mc->nettype == NETWORK_QWK) {
snprintf(buffer, sizeof buffer, "\r---\r \xFE MagickaBBS \xFE %s\r", snprintf(buffer, sizeof buffer, "\r\r---\r * MagickaBBS * %s\r",
tagline); tagline);
} else { } else {
snprintf(buffer, sizeof buffer, "\r"); snprintf(buffer, sizeof buffer, "\r");

View File

@ -238,7 +238,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
msgptr++; msgptr++;
} }
msgptr = &msgbuf[lenbytes]; msgptr = &msgbuf[lenbytes-1];
while (*msgptr == '\0') { while (*msgptr == '\0') {
*msgptr = ' '; *msgptr = ' ';
msgptr--; msgptr--;