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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.80 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.81 by greg, Mon Oct 21 18:19:32 2019 UTC

# Line 458 | Line 458 | creatholo(                     /* create a holodeck output file */
458          int     fd;
459          FILE    *fp;
460                                          /* open & truncate file */
461 <        if ((fp = fopen(hdkfile, "w+")) == NULL) {
461 >        if ((fp = fopen(hdkfile, "wb+")) == NULL) {
462                  sprintf(errmsg, "cannot open \"%s\" for writing", hdkfile);
463                  error(SYSTEM, errmsg);
464          }
# Line 525 | Line 525 | loadholo(void)                 /* start loading a holodeck from fnam
525          off_t   nextloc;
526          
527          if ((ncprocs > 0) & (force >= 0))
528 <                fp = fopen(hdkfile, "r+");
528 >                fp = fopen(hdkfile, "rb+");
529          else
530                  fp = NULL;
531          if (fp == NULL) {
532 <                if ((fp = fopen(hdkfile, "r")) == NULL) {
532 >                if ((fp = fopen(hdkfile, "rb")) == NULL) {
533                          sprintf(errmsg, "cannot open \"%s\"", hdkfile);
534                          error(SYSTEM, errmsg);
535                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines