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.3 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.5 by schorsch, Mon Nov 10 12:28:56 2003 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include <stdio.h>
11   #include <string.h>
12  
13 + #include "rtprocess.h"
14   #include "random.h"
15   #include "color.h"
16   #include "clntrpc.h"
# Line 17 | Line 18 | static const char      RCSid[] = "$Id$";
18  
19   #define GAMMA           2.0             /* gamma correction factor */
20  
20 FILE    *popen();
21  
22   char    *pcom = NULL;                   /* pipe command */
23  
# 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");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines