From cff27d7ae1c312579f262cb2d6cb4997dee8c9b2 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 24 May 2018 19:12:00 +1000 Subject: [PATCH] Another try --- utils/mnetftn/mnettoftn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/mnetftn/mnettoftn.c b/utils/mnetftn/mnettoftn.c index 4a95a40..6d81aa2 100644 --- a/utils/mnetftn/mnettoftn.c +++ b/utils/mnetftn/mnettoftn.c @@ -485,7 +485,8 @@ int import(char *filename) { 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); body = realloc(body, strlen(body) + strlen(buffer) + 1); strcat(&body[i], buffer);