--- ray/src/cv/ies2rad.c 2003/02/22 02:07:23 2.18 +++ ray/src/cv/ies2rad.c 2003/06/30 18:18:22 2.20 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ies2rad.c,v 2.18 2003/02/22 02:07:23 greg Exp $"; +static const char RCSid[] = "$Id: ies2rad.c,v 2.20 2003/06/30 18:18:22 greg Exp $"; #endif /* * Convert IES luminaire data to Radiance description @@ -10,6 +10,7 @@ static const char RCSid[] = "$Id: ies2rad.c,v 2.18 200 */ #include +#include #include #include #include @@ -123,7 +124,7 @@ typedef struct { int gargc; /* global argc (minus filenames) */ char **gargv; /* global argv */ -extern char *strcpy(), *strcat(), *stradd(), *tailtrunc(), *filetrunc(), +extern char *stradd(), *tailtrunc(), *filetrunc(), *filename(), *libname(), *fullnam(), *getword(), *atos(); extern float *matchlamp(); extern time_t fdate(); @@ -549,7 +550,7 @@ char *dir, *tltspec, *dfltname, *tltid; { int nangles, tlt_type; double minmax[2]; - char buf[MAXPATH], tltname[MAXWORD]; + char buf[PATH_MAX], tltname[MAXWORD]; FILE *datin, *datout; if (!strcmp(tltspec, TLTNONE)) { @@ -621,7 +622,7 @@ SRCINFO *sinf; FILE *in, *out; char *mod, *name; { - char buf[MAXPATH], id[MAXWORD]; + char buf[PATH_MAX], id[MAXWORD]; FILE *datout; double mult, bfactor, pfactor, width, length, height, wattage; double bounds[2][2];