ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rcollate.c
(Generate patch)

Comparing ray/src/util/rcollate.c (file contents):
Revision 2.24 by greg, Sat Apr 16 00:42:16 2016 UTC vs.
Revision 2.26 by greg, Thu Aug 2 18:33:50 2018 UTC

# Line 362 | Line 362 | do_transpose(const MEMLOAD *mp)
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");
# Line 441 | Line 441 | done:
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)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines