--- ray/src/px/pflip.c 1991/01/09 11:15:13 1.1 +++ ray/src/px/pflip.c 1991/04/18 14:35:24 1.4 @@ -8,7 +8,7 @@ static char SCCSid[] = "$SunId$ LBL"; * flip picture file horizontally and/or vertically */ -#include "standard.h" +#include #include "color.h" @@ -52,9 +52,14 @@ char *argv[]; exit(1); } /* transfer header */ - copyheader(fin, stdout); + if (checkheader(fin, COLRFMT, stdout) < 0) { + fprintf(stderr, "%s: input not a Radiance picture\n", + progname); + exit(1); + } /* add new header info. */ - printargs(argc, argv, stdout); + printargs(i, argv, stdout); + fputformat(COLRFMT, stdout); putchar('\n'); /* get picture size */ if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) {