362 |
|
print_record(rp, j*ni_columns + i); |
363 |
|
putc(tabEOL[j >= no_columns-1], stdout); |
364 |
|
} else { /* binary output */ |
365 |
< |
fwrite((char *)mp->base + |
365 |
> |
putbinary((char *)mp->base + |
366 |
|
(n_comp*comp_size)*(j*ni_columns + i), |
367 |
< |
n_comp*comp_size, 1, stdout); |
367 |
> |
comp_size, n_comp, stdout); |
368 |
|
} |
369 |
|
if (ferror(stdout)) { |
370 |
|
fprintf(stderr, "Error writing to stdout\n"); |
441 |
|
static int |
442 |
|
headline(char *s, void *p) |
443 |
|
{ |
444 |
< |
static char fmt[32]; |
444 |
> |
static char fmt[MAXFMTLEN]; |
445 |
|
int n; |
446 |
|
|
447 |
|
if (formatval(fmt, s)) { |