diff --git a/cv8/program.c b/cv8/program.c index 6ab5092..bd6eb94 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -39,7 +39,8 @@ void search(struct tree* this){ char buffer[5]; memset(buffer,0,5); - + char* r = fgets(buffer,5,stdin); + if(fgets(buffer, 5, stdin) == NULL){ printf("Koniec vstupu\n"); exit(0);