| 1 | + | #ifndef lint | 
| 2 | + | static const char RCSid[] = "$Id$"; | 
| 3 | + | #endif | 
| 4 |  | /* | 
| 5 |  | * Compute time-step glare using imageless DGP calculation method. | 
| 6 |  | * | 
| 96 |  | } | 
| 97 |  | /* flat file check */ | 
| 98 |  | if ((data_start = ftell(fp)) > 0 && fseek(fp, 0L, SEEK_END) == 0) { | 
| 99 | < | flat_file = (ftell(fp) == data_start + sizeof(COLR)*xr*yr); | 
| 99 | > | flat_file = (ftell(fp) >= data_start + sizeof(COLR)*xr*yr); | 
| 100 |  | if (fseek(fp, data_start, SEEK_SET) < 0) { | 
| 101 |  | sprintf(errmsg, "cannot seek on picture '%s'", fname); | 
| 102 |  | error(SYSTEM, errmsg); |