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

Comparing ray/src/px/pcond.c (file contents):
Revision 3.18 by schorsch, Mon Oct 27 10:24:51 2003 UTC vs.
Revision 3.19 by schorsch, Mon Nov 10 11:54:23 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   */
8  
9   #include "platform.h"
10 + #include "paths.h"
11   #include "rtprocess.h"
12   #include "pcond.h"
13  
# Line 306 | Line 307 | mapimage()                             /* map picture and send to stdout */
307  
308   getfovimg()                     /* load foveal sampled image */
309   {
310 <        char    combuf[128];
310 >        char    combuf[PATH_MAX];
311          FILE    *fp;
312          int     x, y;
313                                                  /* compute image size */
# Line 321 | Line 322 | getfovimg()                    /* load foveal sampled image */
322          }
323          if ((fovimg = (COLOR *)malloc(fvxr*fvyr*sizeof(COLOR))) == NULL)
324                  syserror("malloc");
325 <        sprintf(combuf, "pfilt -1 -b -pa 0 -x %d -y %d %s", fvxr, fvyr, infn);
325 >        sprintf(combuf, "pfilt -1 -b -pa 0 -x %d -y %d \"%s\"", fvxr, fvyr, infn);
326          if ((fp = popen(combuf, "r")) == NULL)
327                  syserror("popen");
328          getheader(fp, NULL, NULL);      /* skip header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines