--- ray/src/util/rcollate.c 2016/04/16 00:42:16 2.24 +++ ray/src/util/rcollate.c 2016/08/18 00:52:48 2.25 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rcollate.c,v 2.24 2016/04/16 00:42:16 greg Exp $"; +static const char RCSid[] = "$Id: rcollate.c,v 2.25 2016/08/18 00:52:48 greg Exp $"; #endif /* * Utility to re-order records in a binary or ASCII data file (matrix) @@ -362,9 +362,9 @@ do_transpose(const MEMLOAD *mp) print_record(rp, j*ni_columns + i); putc(tabEOL[j >= no_columns-1], stdout); } else { /* binary output */ - fwrite((char *)mp->base + + putbinary((char *)mp->base + (n_comp*comp_size)*(j*ni_columns + i), - n_comp*comp_size, 1, stdout); + comp_size, n_comp, stdout); } if (ferror(stdout)) { fprintf(stderr, "Error writing to stdout\n");