made a small change to 1-16

This commit is contained in:
celso 2022-11-09 07:14:28 -03:00
parent 82ef6e9888
commit 9e40e33700
1 changed files with 1 additions and 1 deletions

2
1-16.c
View File

@ -10,7 +10,7 @@ int ggetline(char line[], int maxline){
}
else if (i==maxline-2){
line[i]='\n';
line[i+1]='\0';
line[i++]='\0';
}
}
return i;