summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fopen.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-10-03 15:08:45 +0200
committerAnton Kling <anton@kling.gg>2024-10-03 15:08:45 +0200
commit226d861c9ebb7f09f95665d07d9ab5c6b7ed7d6f (patch)
treed900c3437d3d65ee7bd88474586dc6dd947b14ce /userland/libc/stdio/fopen.c
parent64b0b49a1f23da9faa680f8158cb8a12cd4d118c (diff)
libc: small changes
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;
}