--- ray/src/px/pcompos.c 1989/07/24 09:12:18 1.3 +++ ray/src/px/pcompos.c 1989/09/12 13:04:24 1.4 @@ -132,8 +132,8 @@ getfile: printf("%s:\n", input[nfile].name); getheader(input[nfile].fp, tabputs); /* get picture size */ - if (fscanf(input[nfile].fp, "-Y %d +X %d\n", - &input[nfile].yres, &input[nfile].xres) != 2) { + if (fgetresolu(&input[nfile].xres, &input[nfile].yres, + input[nfile].fp) != (YMAJOR|YDECR)) { fprintf(stderr, "%s: bad picture size\n", input[nfile].name); quit(1);