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

Comparing ray/src/px/pfilt.c (file contents):
Revision 2.37 by greg, Sat Dec 9 02:33:14 2023 UTC vs.
Revision 2.38 by greg, Thu Dec 14 19:03:19 2023 UTC

# Line 238 | Line 238 | main(
238                          fin = stdin;
239                  else {
240                          tfname = mktemp(template);
241 <                        if ((fin = fopen(tfname, "w+")) == NULL) {
241 >                        if ((fin = fopen(tfname, "w+b")) == NULL) {
242                                  fprintf(stderr, "%s: can't create ", progname);
243                                  fprintf(stderr, "temp file \"%s\"\n", tfname);
244                                  quit(1);
# Line 250 | Line 250 | main(
250                          }
251                  }
252          } else if (i == argc-1) {
253 <                if ((fin = fopen(argv[i], "r")) == NULL) {
253 >                if ((fin = fopen(argv[i], "rb")) == NULL) {
254                          fprintf(stderr, "%s: can't open file \"%s\"\n",
255                                                  progname, argv[i]);
256                          quit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines