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