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;