--- ray/src/px/paintjet.c 1990/01/26 08:17:34 1.4 +++ ray/src/px/paintjet.c 1991/04/18 14:35:13 1.5 @@ -48,7 +48,10 @@ char *fname; return(-1); } /* discard header */ - getheader(input, NULL); + if (checkheader(input, COLRFMT, NULL) < 0) { + fprintf(stderr, "%s: not a Radiance picture\n", fname); + return(-1); + } /* get picture dimensions */ if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { fprintf(stderr, "%s: bad picture size\n", fname);