--- ray/src/px/pcond.c 2003/10/27 10:24:51 3.18 +++ ray/src/px/pcond.c 2003/11/10 11:54:23 3.19 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pcond.c,v 3.18 2003/10/27 10:24:51 schorsch Exp $"; +static const char RCSid[] = "$Id: pcond.c,v 3.19 2003/11/10 11:54:23 schorsch Exp $"; #endif /* * Condition Radiance picture for display/output @@ -7,6 +7,7 @@ static const char RCSid[] = "$Id: pcond.c,v 3.18 2003/ */ #include "platform.h" +#include "paths.h" #include "rtprocess.h" #include "pcond.h" @@ -306,7 +307,7 @@ mapimage() /* map picture and send to stdout */ getfovimg() /* load foveal sampled image */ { - char combuf[128]; + char combuf[PATH_MAX]; FILE *fp; int x, y; /* compute image size */ @@ -321,7 +322,7 @@ getfovimg() /* load foveal sampled image */ } if ((fovimg = (COLOR *)malloc(fvxr*fvyr*sizeof(COLOR))) == NULL) syserror("malloc"); - sprintf(combuf, "pfilt -1 -b -pa 0 -x %d -y %d %s", fvxr, fvyr, infn); + sprintf(combuf, "pfilt -1 -b -pa 0 -x %d -y %d \"%s\"", fvxr, fvyr, infn); if ((fp = popen(combuf, "r")) == NULL) syserror("popen"); getheader(fp, NULL, NULL); /* skip header */