--- ray/src/px/macbethcal.c 2003/10/27 10:24:51 2.21 +++ ray/src/px/macbethcal.c 2003/11/10 12:28:56 2.22 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: macbethcal.c,v 2.21 2003/10/27 10:24:51 schorsch Exp $"; +static const char RCSid[] = "$Id: macbethcal.c,v 2.22 2003/11/10 12:28:56 schorsch Exp $"; #endif /* * Calibrate a scanned MacBeth Color Checker Chart @@ -99,7 +99,7 @@ short mbneu[NMBNEU] = {Black,Neutral35,Neutral5,Neutra #define RG_CORR 04 /* corrected color region */ #ifndef DISPCOM -#define DISPCOM "ximage -op %s" +#define DISPCOM "ximage -op \"%s\"" #endif int scanning = 1; /* scanned input (or recorded output)? */ @@ -799,7 +799,7 @@ FILE *fp; pickchartpos(pfn) /* display picture and pick chart location */ char *pfn; { - char combuf[512]; + char combuf[PATH_MAX]; FILE *pfp; sprintf(combuf, DISPCOM, pfn);