From: Michael Stapelberg Date: Sat, 29 Sep 2012 11:43:20 +0000 (+0200) Subject: backspace in get_input(): write \0-bytes X-Git-Tag: rgb2rv9~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81d3aa7ca5bc567354538c5fe3d12de048a8e65e;p=c128-kasse backspace in get_input(): write \0-bytes --- diff --git a/src/general.c b/src/general.c index cae149a..d40627e 100644 --- a/src/general.c +++ b/src/general.c @@ -33,7 +33,7 @@ char *get_input() { break; /* backspace? */ if (c == 20) { - i--; + output[--i] = '\0'; cputcxy(x+i, y, ' '); gotoxy(x+i, y); continue;