From 00168fc1bfbc7fa0e055246a0c75ea8a5ffbfecd Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 7 Apr 2016 17:08:38 +1000 Subject: [PATCH] Some experimental fixes to External editing --- mail_menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mail_menu.c b/mail_menu.c index 25dc5b4..f50c881 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -343,15 +343,16 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from } - body2 = (char *)malloc(strlen(body) + 19 + strlen(tagline)); + body2 = (char *)malloc(totlen + 19 + strlen(tagline)); j = 0; - for (i=0;i