diff options
Diffstat (limited to 'usr/klibc/stdio/ftell.c')
-rw-r--r-- | usr/klibc/stdio/ftell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/klibc/stdio/ftell.c b/usr/klibc/stdio/ftell.c index cb1202da0bc1f..4db13dd9064cb 100644 --- a/usr/klibc/stdio/ftell.c +++ b/usr/klibc/stdio/ftell.c @@ -3,7 +3,7 @@ off_t ftell(FILE *file) { struct _IO_file_pvt *f = stdio_pvt(file); - off_t pos = lseek(f->pub._IO_fileno, 0, SEEK_CUR); + off_t pos = f->funcs.seek(f->cookie, 0, SEEK_CUR); if (pos >= 0) pos += (int)f->obytes - (int)f->ibytes; |