From 2c45569ede66498f22c16a0405075ac849a64daa Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 22 Apr 2016 15:46:20 +1000 Subject: [PATCH] Nope not yet --- mail_menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_menu.c b/mail_menu.c index ba11ec0..a57e22b 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -827,7 +827,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh } if (body[z] == 'A') { for (i=0;i 0) { + if (lines - (i + 1) >= 0) { s_putstring(socket, "\e[1A"); lines--; } else { @@ -837,7 +837,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh } if (body[z] == 'C') { for (i=0;i 0) { + if (chars - (i + 1) >= 0) { s_putstring(socket, "\e[1D"); chars--; } else {