another little fix

This commit is contained in:
Andrew Pamment 2018-05-24 20:10:33 +10:00
parent 6a10b0fb38
commit 7cca518dfc

View File

@ -297,6 +297,16 @@ int export_messages(int area) {
msg.area = areas[area]->id;
msg.type = 0;
for (i=strlen(body) -2; i > 0; i--) {
if (body[i] == '\r') {
sprintf(buffer, "\r * Origin: ftn->mnet (%d)\r", mynode);
body = realloc(body, strlen(body) + strlen(buffer) + 1);
strcpy(&body[i], buffer);
break;
}
}
if (areas[area]->hub == mynode) {
for (n = 0; n < areas[area]->link_count; n++) {
if (imhub) {
@ -370,7 +380,7 @@ int main(int argc, char **argv) {
int l;
if (argc < 2) {
fprintf(stderr, "Usage ./mnetscan mnet.cfg\n");
fprintf(stderr, "Usage ./ftntomnet mnet.cfg\n");
return -1;
}