diff options
Diffstat (limited to 'com32/lib/sys/ftell.c')
-rw-r--r-- | com32/lib/sys/ftell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/ftell.c b/com32/lib/sys/ftell.c index 5c1a9442..d8090087 100644 --- a/com32/lib/sys/ftell.c +++ b/com32/lib/sys/ftell.c @@ -12,5 +12,5 @@ long ftell(FILE * stream) int fd = fileno(stream); struct file_info *fp = &__file_info[fd]; - return fp->i.offset; + return fp->i.offset - fp->i.unread_bytes; } |