1.1 --- a/src/game.c Mon Apr 07 17:39:46 2014 +0200 1.2 +++ b/src/game.c Tue Apr 08 21:13:28 2014 +0200 1.3 @@ -154,6 +154,7 @@ 1.4 1.5 const size_t buflen = 8; 1.6 char movestr[buflen]; 1.7 + movestr[0] = '\0'; 1.8 1.9 int inputy = getmaxy(stdscr) - 6; 1.10 while (1) { 1.11 @@ -205,6 +206,7 @@ 1.12 } 1.13 clrtoeol(); 1.14 } 1.15 + movestr[0] = '\0'; /* reset string for next input */ 1.16 } 1.17 } 1.18 }