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.25 by greg, Fri Feb 19 16:15:23 2021 UTC vs.
Revision 2.26 by greg, Fri Feb 19 18:00:29 2021 UTC

# Line 22 | Line 22 | putstr(                                /* write null-terminated string to fp */
22   {
23          do
24                  putc(*s, fp);
25 <        while (*++s);
25 >        while (*s++);
26  
27 <        return(putc(0, fp));    /* terminator */
27 >        return(ferror(fp) ? EOF : 0);
28   }
29  
30  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines