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

Comparing ray/src/common/portio.c (file contents):
Revision 2.20 by greg, Thu Jul 4 02:06:32 2019 UTC vs.
Revision 2.21 by greg, Fri Jul 5 03:04:22 2019 UTC

# Line 75 | Line 75 | putbinary(                     /* fwrite() replacement for small objects
75                  return(fwrite(p, elsiz, nel, fp));
76          
77          while (nbytes-- > 0)
78 <                putc(*s++, fp);
78 >                if (putc(*s++, fp) == EOF)
79 >                        return((elsiz*nel - nbytes)/elsiz);
80  
81          return(nel);
82   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines