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

Comparing ray/src/px/oki20.c (file contents):
Revision 2.1 by greg, Sat Apr 11 16:31:07 1992 UTC vs.
Revision 2.2 by greg, Sat Apr 18 09:10:51 1992 UTC

# Line 65 | Line 65 | char  *fname;
65          int  i;
66  
67          if (dofilter) {
68 <                if (fname == NULL)
69 <                        fname = "";
70 <                sprintf(buf, FILTER, fname);
68 >                if (fname == NULL) {
69 >                        sprintf(buf, FILTER, "");
70 >                        fname = "<stdin>";
71 >                } else
72 >                        sprintf(buf, FILTER, fname);
73                  if ((input = popen(buf, "r")) == NULL) {
74                          fprintf(stderr, "Cannot execute: %s\n", buf);
75                          return(-1);
76                  }
75                fname = buf;
77          } else if (fname == NULL) {
78                  input = stdin;
79                  fname = "<stdin>";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines