diff options
Diffstat (limited to 'source/blender/imbuf/intern/iff.c')
-rw-r--r-- | source/blender/imbuf/intern/iff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/iff.c b/source/blender/imbuf/intern/iff.c index 5fd823e78c1..db2e54a31b6 100644 --- a/source/blender/imbuf/intern/iff.c +++ b/source/blender/imbuf/intern/iff.c @@ -198,16 +198,16 @@ unsigned short imb_update_iff(int file, int code) if (code == 0) return (TRUE); filelen-=4; - lseek(file,4L,1); + if(lseek(file,4L,1) == -1) return (FALSE); while (filelen>0){ /* seek BODY */ - read(file, buf, 8); + if(read(file, buf, 8) != 8) return (FALSE); filelen -= 8; if (buf[0] == code) break; skip = (BIG_LONG(buf[1]) + 1) & ~1; filelen -= skip; - lseek(file, skip, 1); + if(lseek(file, skip, 1) == -1) return (FALSE); } if (filelen <= 0) { printf("update_iff: couldn't find chunk\n"); |