ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/fropen.c
(Generate patch)

Comparing ray/src/common/fropen.c (file contents):
Revision 2.9 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.13 by schorsch, Thu Jul 17 09:21:29 2003 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include <stdio.h>
13  
14 + #include "rtio.h"
15   #include "paths.h"
16  
17  
# Line 18 | Line 19 | FILE *
19   frlibopen(fname)                /* find file and open for reading */
20   register char  *fname;
21   {
22 <        extern char  *strcpy(), *getlibpath();
22 >        extern char  *getrlibpath();
23          FILE  *fp;
24 <        char  pname[MAXPATH];
24 >        char  pname[PATH_MAX];
25          register char  *sp, *cp;
26  
27          if (fname == NULL)
# Line 29 | Line 30 | register char  *fname;
30          if (ISDIRSEP(fname[0]) || fname[0] == '.')      /* absolute path */
31                  return(fopen(fname, "r"));
32                                                  /* check search path */
33 <        sp = getlibpath();
33 >        sp = getrlibpath();
34          do {
35                  cp = pname;
36                  while (*sp && (*cp = *sp++) != PATHSEP)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines