diff options
Diffstat (limited to 'com32/lib/sys/fstat.c')
-rw-r--r-- | com32/lib/sys/fstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/fstat.c b/com32/lib/sys/fstat.c index 6a853933..0ce8cadb 100644 --- a/com32/lib/sys/fstat.c +++ b/com32/lib/sys/fstat.c @@ -45,14 +45,14 @@ int fstat(int fd, struct stat *buf) } if (fp->iop->flags & __DEV_FILE) { - if (fp->i.length == (uint32_t) - 1) { + if (fp->i.fd.size == (uint32_t) - 1) { /* File of unknown length, report it as a socket (it probably really is, anyway!) */ buf->st_mode = S_IFSOCK | 0444; buf->st_size = 0; } else { buf->st_mode = S_IFREG | 0444; - buf->st_size = fp->i.length; + buf->st_size = fp->i.fd.size; } } else { buf->st_mode = S_IFCHR | 0666; |