Skip to content

Commit

Permalink
Since a file descriptor is being passed in we need to use fstat instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lamiller0 authored and Qlex42 committed Sep 20, 2022
1 parent 0b61f78 commit 80c5f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Alembic/Ogawa/IStreams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class FileIStreamReader : public IStreamReader
{
struct __stat64 buf;

int err = _stat64(iFile, &buf);
int err = _fstat64(iFile, &buf);
if (err < 0) return -1;
if (buf.st_size < 0) return -1;

Expand Down

0 comments on commit 80c5f6c

Please sign in to comment.