diff --git a/du6/program.c b/du6/program.c index 65b50d6..4312cce 100644 --- a/du6/program.c +++ b/du6/program.c @@ -73,7 +73,7 @@ void print(struct LIS *list,int count,int places){ if(places>0){ int k=0; printf("Prijati studenti:\n"); - for(int i=0;k!=places+1;i++){ + for(int i=0;k!=places;i++){ if(list[i].num==0){ fputs(list[i].fname,stdout); k++;