From 25344a392cd49816e440a5acff5923e311701858 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 9 Apr 2016 12:44:25 +1000 Subject: [PATCH] Attempt to fix external editor problem --- mail_menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index a230cf7..cbbba96 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -283,7 +283,13 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from // write msgtemp if (quote != NULL) { fptr = fopen(buffer, "w"); - fwrite(quote, strlen(quote), 1, fptr); + for (i=0;i