7 |
|
*/ |
8 |
|
|
9 |
|
#include "platform.h" |
10 |
+ |
#include "paths.h" |
11 |
|
#include "rtprocess.h" |
12 |
|
#include "pcond.h" |
13 |
|
|
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 */ |
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 */ |