From 3954817248afb6bfd4e7591e33439f4c9a3a48c6 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 4 Aug 2016 19:49:56 +1000 Subject: [PATCH] fix for backspace fix --- bbs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bbs.c b/bbs.c index e9ee4f3..6eacdaf 100644 --- a/bbs.c +++ b/bbs.c @@ -241,6 +241,7 @@ void s_readstring(int socket, char *buffer, int max) { s_putstring(socket, "\e[D \e[D"); continue; } else if (c == '\b' || c == 127) { + i -= 1; continue; } @@ -266,6 +267,7 @@ void s_readpass(int socket, char *buffer, int max) { s_putstring(socket, "\e[D \e[D"); continue; } else if (c == '\b' || c == 127) { + i -= 1; continue; }