diff --git a/du6/program.c b/du6/program.c index a700c3b..4d6678f 100644 --- a/du6/program.c +++ b/du6/program.c @@ -35,6 +35,7 @@ char keep(struct LIS* list,int places){ int count=0; char names[100]; for(;fgets(names,100,stdin);){ + if(names[0]=='\n') continue; if(sscanf(names,"%s %s",list[count].fname,list[count].name)==2){ count++; if(places>=count){