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

Comparing ray/src/px/panim.c (file contents):
Revision 2.4 by schorsch, Mon Oct 27 10:24:51 2003 UTC vs.
Revision 2.6 by schorsch, Fri Jan 2 10:25:13 2004 UTC

# Line 74 | Line 74 | char   *argv[];
74   sendframe(file)                 /* convert and send a frame */
75   char    *file;
76   {
77 <        char    command[128];
77 >        char    command[PATH_MAX];
78          COLR    scanin[SCANLINE];
79          int     xres, yres;
80          int     xbeg, ybeg;
# Line 90 | Line 90 | char   *file;
90                  file = "<stdin>";
91          } else {
92                  if (pcom != NULL) {
93 <                        sprintf(command, "( %s ) < %s", pcom, file);
93 >                        sprintf(command, "( %s ) < \"%s\"", pcom, file);
94                          fp = popen(command, "r");
95                  } else
96                          fp = fopen(file, "r");
# Line 100 | Line 100 | char   *file;
100                  exit(1);
101          }
102                                                  /* get dimensions */
103 <        getheader(fp, NULL);
103 >        getheader(fp, NULL, NULL);
104          if (checkheader(fp, COLRFMT, NULL) < 0) {
105                  fputs(file, stderr);
106                  fputs(": not a Radiance picture\n", stderr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines