summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdio/fopen.c')
-rw-r--r--userland/libc/stdio/fopen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/stdio/fopen.c b/userland/libc/stdio/fopen.c
index 71d14db..52e78d1 100644
--- a/userland/libc/stdio/fopen.c
+++ b/userland/libc/stdio/fopen.c
@@ -56,5 +56,6 @@ FILE *fopen(const char *pathname, const char *mode) {
r->fd = fd;
r->read_buffer = NULL;
r->read_buffer_stored = 0;
+ r->fflush = fflush_fd;
return r;
}