--- ray/src/common/fropen.c 1995/03/01 10:40:17 2.7 +++ ray/src/common/fropen.c 2003/08/26 04:24:26 2.14 @@ -1,15 +1,17 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: fropen.c,v 2.14 2003/08/26 04:24:26 greg Exp $"; #endif - /* * Find and open a Radiance library file. + * + * External symbols declared in rtio.h */ +#include "copyright.h" + #include +#include "rtio.h" #include "paths.h" @@ -17,9 +19,8 @@ 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) @@ -28,7 +29,7 @@ register char *fname; if (ISDIRSEP(fname[0]) || fname[0] == '.') /* absolute path */ return(fopen(fname, "r")); /* check search path */ - sp = getlibpath(); + sp = getrlibpath(); do { cp = pname; while (*sp && (*cp = *sp++) != PATHSEP)