I'll get it eventually

This commit is contained in:
Andrew Pamment 2018-05-24 19:16:16 +10:00
parent d254c1eca9
commit 673e3f4423

View File

@ -485,10 +485,10 @@ int import(char *filename) {
for (i=strlen(body) -2; i > 0; i--) {
if (strstr(&body[i], "\r---\r") != NULL) {
sprintf(buffer, "\r---\r * Origin: mnet->ftn (%s)", fido_addr);
if (body[i] == '\r') {
sprintf(buffer, "\r * Origin: mnet->ftn (%s)\r", fido_addr);
body = realloc(body, strlen(body) + strlen(buffer) + 1);
strcat(&body[i], buffer);
strcpy(&body[i], buffer);
break;
}
}