From 0ade566c110170dfa74c227f19d2ce5136ab6049 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 13 Oct 2018 20:14:31 +1000 Subject: [PATCH] fix for message sending --- src/mail_menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mail_menu.c b/src/mail_menu.c index 291e26f..041bf00 100644 --- a/src/mail_menu.c +++ b/src/mail_menu.c @@ -516,8 +516,10 @@ char *external_editor(struct user_record *user, char *to, char *from, char *quot } if (user->autosig) { body2 = (char *)malloz(totlen + 3 + strlen(buffer) + strlen(user->signature)); + totlen += strlen(buffer) + strlen(user->signature) + 3; } else { body2 = (char *)malloz(totlen + 2 + strlen(buffer)); + totlen += strlen(buffer) + 2; } } else { body2 = (char *)malloz(totlen + 1);