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

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.20 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.22 by greg, Mon Feb 6 22:40:21 2023 UTC

# Line 216 | Line 216 | startpicture(          /* initialize picture for rendering & o
216                                  /* prepare output */
217          if (outspec != NULL) {
218                  sprintf(fname, outspec, fn);
219 <                if (freopen(fname, "w", stdout) == NULL) {
219 >                if (freopen(fname, "wb", stdout) == NULL) {
220                          sprintf(errmsg, "cannot open output \"%s\"", fname);
221                          error(SYSTEM, errmsg);
222                  }
# Line 287 | Line 287 | initialize(void)                       /* initialize holodeck and buffers
287          int     n;
288          off_t   nextloc;
289                                          /* open holodeck file */
290 <        if ((fp = fopen(hdkfile, "r")) == NULL) {
290 >        if ((fp = fopen(hdkfile, "rb")) == NULL) {
291                  sprintf(errmsg, "cannot open \"%s\" for reading", hdkfile);
292                  error(SYSTEM, errmsg);
293          }
# Line 317 | Line 317 | initialize(void)                       /* initialize holodeck and buffers
317  
318  
319   void
320 < eputs(s)                        /* put error message to stderr */
321 < char  *s;
320 > eputs(const char *s)            /* put error message to stderr */
321   {
322          static int  midline = 0;
323  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines