diff --git a/cv7/program.c b/cv7/program.c index 5f06f21..9ef112d 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -55,7 +55,7 @@ void run_tree(struct tree* tree) { printf("Koniec vstupu\n"); return; }else if (response != 'a' && response != 'n') { - if (feof(stdin)) { + if (scanf(" %c", &response) != 1) { printf("Chybna databaza\n"); } else { printf("Nerozumiem\n");