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

Comparing ray/src/util/rcrop.c (file contents):
Revision 1.5 by greg, Tue Mar 15 04:41:45 2022 UTC vs.
Revision 1.6 by greg, Tue Mar 15 15:01:22 2022 UTC

# Line 341 | Line 341 | main(int argc, char *argv[])
341          if (!(asiz < 0 ? colr_copyf(fp) :
342                          !asiz ? ascii_copyf(fp) : binary_copyf(fp, asiz)))
343                  return(1);
344 +                                        /* need to consume the rest? */
345 +        if (fp == stdin && rmin+nrows < numscans(&res) &&
346 +                        fseek(fp, 0L, SEEK_END) < 0)
347 +                while (getc(fp) != EOF)
348 +                        ;
349          return(0);
350   usage:
351          fputs("Usage: ", stderr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines