# | Line 146 | Line 146 | char *argv[]; | |
---|---|---|
146 | exposure *= atof(sbuf+9); | |
147 | ||
148 | /* get picture dimensions */ | |
149 | < | if (fgets(sbuf, sizeof(sbuf), fin) == NULL || |
150 | < | sscanf(sbuf, "-Y %d +X %d\n", &ymax, &xmax) != 2) |
149 | > | if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) |
150 | quitmsg("bad picture size"); | |
151 | if (xmax > NCOLS || ymax > NROWS) | |
152 | quitmsg("resolution mismatch"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |