another try

This commit is contained in:
Andrew Pamment 2018-05-24 19:07:39 +10:00
parent f176690ca3
commit 43c4400294

View File

@ -488,7 +488,7 @@ int import(char *filename) {
if (body[i] == '\r') { if (body[i] == '\r') {
sprintf(buffer, "\r---\r * Origin: mnet->ftn (%s)", fido_addr); sprintf(buffer, "\r---\r * Origin: mnet->ftn (%s)", fido_addr);
body = realloc(body, strlen(body) + strlen(buffer) + 1); body = realloc(body, strlen(body) + strlen(buffer) + 1);
strcat(body, buffer); strcat(&body[i], buffer);
break; break;
} }
} }