mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -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))
|
if (mem_feof(stream))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
str[++i] = '\0';
|
str[i] = '\0';
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user