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