From 5fbd9b519e082fc235a8a57c6cf761e6cefbfb62 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 22 Jun 2024 21:41:46 +0200 Subject: LibC: Fix bugs relating to fseek --- userland/libc/stdio/ftell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/libc/stdio/ftell.c') 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 long ftell(FILE *stream) { - return stream->offset_in_file; + return fseek(stream, 0, SEEK_CUR); } -- cgit v1.2.3