--- ray/src/common/fropen.c 2003/02/25 02:47:21 2.9 +++ ray/src/common/fropen.c 2012/06/29 23:09:06 2.15 @@ -1,16 +1,17 @@ #ifndef lint -static const char RCSid[] = "$Id: fropen.c,v 2.9 2003/02/25 02:47:21 greg Exp $"; +static const char RCSid[] = "$Id: fropen.c,v 2.15 2012/06/29 23:09:06 greg Exp $"; #endif /* * Find and open a Radiance library file. * - * External symbols declared in standard.h + * External symbols declared in rtio.h */ #include "copyright.h" #include +#include "rtio.h" #include "paths.h" @@ -18,18 +19,17 @@ FILE * frlibopen(fname) /* find file and open for reading */ register char *fname; { - extern char *strcpy(), *getlibpath(); FILE *fp; - char pname[MAXPATH]; + char pname[PATH_MAX]; register char *sp, *cp; if (fname == NULL) return(NULL); - if (ISDIRSEP(fname[0]) || fname[0] == '.') /* absolute path */ + if (ISABS(fname) || fname[0] == '.') /* absolute path */ return(fopen(fname, "r")); /* check search path */ - sp = getlibpath(); + sp = getrlibpath(); do { cp = pname; while (*sp && (*cp = *sp++) != PATHSEP)