summaryrefslogtreecommitdiff
path: root/userland/libc/stdio
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-11-28 00:06:09 +0100
committerAnton Kling <anton@kling.gg>2024-11-28 00:12:17 +0100
commit54869df7835565d0983096f65326cdd2d5f4f3d8 (patch)
tree3124d37d170bb14bfcc315442e410c0b76a05cf1 /userland/libc/stdio
parent5fdba54196c7171ddebb29aef597b965a1b1ead1 (diff)
changes
Diffstat (limited to 'userland/libc/stdio')
-rw-r--r--userland/libc/stdio/open_memstream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/userland/libc/stdio/open_memstream.c b/userland/libc/stdio/open_memstream.c
index c829644..b129cb6 100644
--- a/userland/libc/stdio/open_memstream.c
+++ b/userland/libc/stdio/open_memstream.c
@@ -86,6 +86,9 @@ FILE *open_memstream(char **bufp, size_t *sizep) {
fp->file_size = MEMSTREAM_DEF_SIZE;
fp->fflush = NULL;
+ fp->can_write = 1;
+ fp->can_read = 1;
+
fp->write = memstream_write;
fp->read = memstream_read;