--- ray/src/px/glimage.c 1990/01/26 08:18:38 1.2 +++ ray/src/px/glimage.c 1991/04/18 14:35:08 1.3 @@ -39,7 +39,10 @@ char *argv[]; exit(1); } /* discard header */ - getheader(input, NULL); + if (checkheader(input, COLRFMT, NULL) < 0) { + fprintf(stderr, "%s: not a Radiance picture\n", fname); + exit(1); + } /* get picture dimensions */ if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { fprintf(stderr, "%s: bad picture size\n", fname);