# | Line 93 | Line 93 | sum_images(const char *fspec, const CMATRIX *cv, FILE | |
---|---|---|
93 | } | |
94 | /* flat file check */ | |
95 | if ((data_start = ftell(fp)) > 0 && fseek(fp, 0L, SEEK_END) == 0) { | |
96 | < | flat_file = (ftell(fp) == data_start + sizeof(COLR)*xr*yr); |
96 | > | flat_file = (ftell(fp) >= data_start + sizeof(COLR)*xr*yr); |
97 | if (fseek(fp, data_start, SEEK_SET) < 0) { | |
98 | sprintf(errmsg, "cannot seek on picture '%s'", fname); | |
99 | error(SYSTEM, errmsg); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |