summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/open_memstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdio/open_memstream.c')
-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;