# | Line 115 | Line 115 | copycat(void) /* copy input to output */ | |
---|---|---|
115 | ||
116 | fflush(stdout); | |
117 | while ((n = fread(buf, 1, sizeof(buf), stdin)) > 0) | |
118 | < | if (writebuf(fileno(stdout), buf, n) != n) |
118 | > | if (writebuf(1, buf, n) != n) |
119 | break; | |
120 | } | |
121 | ||
# | Line 236 | Line 236 | main( | |
236 | #endif | |
237 | if (dim < 0) { /* dimensions only */ | |
238 | if (getheader(fp, NULL, NULL) < 0) { | |
239 | < | fputs("bad header!\n", stdout); |
239 | > | fputs(": bad header!\n", stdout); |
240 | continue; | |
241 | } | |
242 | fputs(": ", stdout); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |