diff options
author | Anton Kling <anton@kling.gg> | 2024-10-02 19:34:52 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-10-02 19:34:52 +0200 |
commit | 4f52e561379d3328fd3d8508da8b72c44cf542a4 (patch) | |
tree | ad1039860165f7e89fad42a11e9ca5adbb89245b | |
parent | 5a7640af235a2068c233ce47a56d74defd4c2f0e (diff) |
libc: Fix FILE memstream bug
-rw-r--r-- | userland/libc/stdio/open_memstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/stdio/open_memstream.c b/userland/libc/stdio/open_memstream.c index 0d3df86..c829644 100644 --- a/userland/libc/stdio/open_memstream.c +++ b/userland/libc/stdio/open_memstream.c @@ -84,6 +84,7 @@ FILE *open_memstream(char **bufp, size_t *sizep) { fp->is_eof = 0; fp->has_error = 0; fp->file_size = MEMSTREAM_DEF_SIZE; + fp->fflush = NULL; fp->write = memstream_write; fp->read = memstream_read; |