From 6e2ab46cfdc26e4f1c45a6e1ef299c4eb661cfcb Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Wed, 8 Apr 2020 14:55:19 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu6/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du6/program.c b/du6/program.c index 4a42b3a..378936d 100644 --- a/du6/program.c +++ b/du6/program.c @@ -24,7 +24,7 @@ int main(){ } else if(tmpCh == '\n') break; ungetc(tmpCh, stdin); - scanf("%s", names[i]); + scanf("%[^\n]", names[i]); realLines++; tmpCh = getc(stdin); if(tmpCh == EOF) break;