| # | Line 50 | Line 50 | char **argv; | |
|---|---|---|
| 50 | while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n') | |
| 51 | ; | |
| 52 | /* get picture dimensions */ | |
| 53 | < | if (fgets(sbuf, sizeof(sbuf), input) == NULL || |
| 54 | < | sscanf(sbuf, "-Y %d +X %d\n", &yres, &xres) != 2) { |
| 53 | > | if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { |
| 54 | fprintf(stderr, "%s: bad picture size\n", progname); | |
| 55 | exit(1); | |
| 56 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |