mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-21 02:43:26 -04:00
memio: fix mem_fgets() EOF case
This commit is contained in:
parent
e43aa4b836
commit
8553ae2beb
@ -177,7 +177,7 @@ char *mem_fgets(char *str, int count, MEMFILE *stream)
|
||||
if (mem_feof(stream))
|
||||
return NULL;
|
||||
|
||||
str[++i] = '\0';
|
||||
str[i] = '\0';
|
||||
return str;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user