diff --git a/du3/program.c b/du3/program.c index d8c2b94..02b7d7e 100644 --- a/du3/program.c +++ b/du3/program.c @@ -24,7 +24,7 @@ int main() fgets(dateStr, 11, stdin); sscanf(dateStr , "%d:%d:%d" , &hour,&min,&secs); - if(!ValidateTime(hour,min,sec)){ + if(!ValidateTime(hour,min,secs)){ printf("Nespravny datum\n"); } char* res = strptime(dateStr, "%d.%m.%Y", &t);