From badf37c5463a466952c2aad8632945570e66267d Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 26 Mar 2020 22:13:28 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu3/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }