diff -r a285ee393860 -r ed440bcd9740 src/game.c --- a/src/game.c Mon Apr 07 17:39:46 2014 +0200 +++ b/src/game.c Tue Apr 08 21:13:28 2014 +0200 @@ -154,6 +154,7 @@ const size_t buflen = 8; char movestr[buflen]; + movestr[0] = '\0'; int inputy = getmaxy(stdscr) - 6; while (1) { @@ -205,6 +206,7 @@ } clrtoeol(); } + movestr[0] = '\0'; /* reset string for next input */ } } }