fix the fgets hack
This commit is contained in:
parent
e3711df1cb
commit
7f6b72c963
@ -173,7 +173,8 @@ fgets(char *str, int size, FILE *fh)
|
||||
return NULL;
|
||||
if (ch == '\b') {
|
||||
if (i > 0)
|
||||
i -= 2;
|
||||
i -= 1;
|
||||
i -= 1;
|
||||
continue;
|
||||
}
|
||||
str[i] = (char)ch;
|
||||
|
Loading…
Reference in New Issue
Block a user