FIX: array-out-of-bounds

This commit is contained in:
iceman1001 2018-01-25 17:59:11 +01:00
parent a13ecc4a4e
commit c1b4411268

View file

@ -424,9 +424,9 @@ int CmdAnalyseA(const char *Cmd){
star[0] = '-';
star[1] = '\\';
star[2] = '|';
star[4] = '/';
star[3] = '/';
for (uint8_t k=0; k<5; k = (k+1) % 4 ) {
for (uint8_t k=0; k<4; k = (k+1) % 4 ) {
printf("\e[s%c\e[u", star[k]);
fflush(stdout);
if (ukbhit()) {