Another try

This commit is contained in:
Andrew Pamment 2018-05-24 19:12:00 +10:00
parent 43c4400294
commit cff27d7ae1

View File

@ -485,7 +485,8 @@ int import(char *filename) {
for (i=strlen(body) -2; i > 0; i--) { for (i=strlen(body) -2; i > 0; i--) {
if (body[i] == '\r') {
if (strstr(&body[i], "\r---\r") != NULL) {
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[i], buffer); strcat(&body[i], buffer);