64 |
|
exit(1); |
65 |
|
} |
66 |
|
if (i == argc-2 && freopen(argv[i+1], "w", stdout) == NULL) { |
67 |
< |
fprintf(stderr, "can't open output \"%s\"\n", |
67 |
> |
fprintf(stderr, "%s: can't open output \"%s\"\n", |
68 |
|
progname, argv[i+1]); |
69 |
|
exit(1); |
70 |
|
} |
93 |
|
int order; |
94 |
|
int xmax, ymax; |
95 |
|
COLR *scanin; |
96 |
– |
register int x; |
96 |
|
int y; |
97 |
|
/* get header info. */ |
98 |
|
if (checkheader(stdin, COLRFMT, stdout) < 0 || |
126 |
|
else |
127 |
|
fwritecolrs(scanin, xmax, stdout); |
128 |
|
if (ferror(stdout)) |
129 |
< |
quiterr("error writing rasterfile"); |
129 |
> |
quiterr("error writing output picture"); |
130 |
|
} |
131 |
|
/* free scanline */ |
132 |
|
free((char *)scanin); |