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

Comparing ray/src/px/oki20c.c (file contents):
Revision 2.5 by greg, Sat Apr 11 16:31:32 1992 UTC vs.
Revision 2.6 by greg, Sat Apr 18 09:10:53 1992 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines