diff --git a/src/common/io.c b/src/common/io.c index 0fce38c2c..1c2fb918b 100644 --- a/src/common/io.c +++ b/src/common/io.c @@ -120,8 +120,8 @@ bool ffAppendFDBuffer(int fd, FFstrbuf* buffer) { ssize_t readed = 0; - struct stat64 fileInfo; - if(fstat64(fd, &fileInfo) != 0) + struct stat fileInfo; + if(fstat(fd, &fileInfo) != 0) return false; ffStrbufEnsureFree(buffer, fileInfo.st_size > 0 ? (uint32_t)fileInfo.st_size : 31);