diff options
author | Anton Kling <anton@kling.gg> | 2024-06-22 21:41:46 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-22 21:41:46 +0200 |
commit | 5fbd9b519e082fc235a8a57c6cf761e6cefbfb62 (patch) | |
tree | d9df62f8bf6ed6b17a7b61aa77f61da9d097c5ff /userland/libc/stdio/ftell.c | |
parent | 5e10cdd5b4aa7486208dd14ebef4254ec5b5d03a (diff) |
LibC: Fix bugs relating to fseek
Diffstat (limited to 'userland/libc/stdio/ftell.c')
-rw-r--r-- | userland/libc/stdio/ftell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/libc/stdio/ftell.c b/userland/libc/stdio/ftell.c index 35076d0..1729d74 100644 --- a/userland/libc/stdio/ftell.c +++ b/userland/libc/stdio/ftell.c @@ -1,5 +1,5 @@ #include <stdio.h> long ftell(FILE *stream) { - return stream->offset_in_file; + return fseek(stream, 0, SEEK_CUR); } |