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.21 by greg, Mon Oct 21 18:19:32 2019 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          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines