diff --git a/du5/program.c b/du5/program.c index adc5838..c424540 100644 --- a/du5/program.c +++ b/du5/program.c @@ -47,6 +47,9 @@ int main(int argc, char const *argv[]){ char* end = NULL; int value = strtol(line,&end,10); if (value == 0){ + if(size!=0){ + break; + } printf("Nepodarilo nacitat nic\n"); return 0; }