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.11 by greg, Wed Mar 16 16:48:39 2022 UTC vs.
Revision 1.12 by greg, Mon Mar 21 20:19:19 2022 UTC

# Line 112 | Line 112 | binary_copyf(FILE *fp, int asize)
112                                  return(0);
113                          }
114                  }
115 <                free(buf);              /* success! */
116 <                return(1);
115 >                free(buf);
116 >                if (fflush(stdout) == EOF)
117 >                        goto writerr;
118 >                return(1);              /* success! */
119          }                               /* else need to read it all... */
120          buf = (char *)malloc(width*elsiz);
121          if (!buf)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines