--- ray/src/px/mt160r.c 1989/10/20 20:35:59 1.4 +++ ray/src/px/mt160r.c 1990/01/25 08:28:33 1.5 @@ -39,7 +39,6 @@ char *fname; FILE *input; int xres, yres; COLR scanline[NCOLS]; - char sbuf[256]; int i; if (fname == NULL) { @@ -50,8 +49,7 @@ char *fname; return(-1); } /* discard header */ - while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n') - ; + getheader(input, NULL); /* get picture dimensions */ if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { fprintf(stderr, "%s: bad picture size\n", fname);