diff --git a/du3/program.c b/du3/program.c index 3ab7607..d8c2b94 100644 --- a/du3/program.c +++ b/du3/program.c @@ -23,7 +23,7 @@ int main() int hour = 0, min = 0, secs = 0; fgets(dateStr, 11, stdin); - sscanf(string , "%d:%d:%d" , &hour,&min,&secs); + sscanf(dateStr , "%d:%d:%d" , &hour,&min,&secs); if(!ValidateTime(hour,min,sec)){ printf("Nespravny datum\n"); }