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

Comparing ray/src/gen/xform.c (file contents):
Revision 2.26 by schorsch, Sun Jun 8 12:03:10 2003 UTC vs.
Revision 2.30 by schorsch, Mon Jul 14 20:02:29 2003 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   */
11  
12   #include  <ctype.h>
13 #include  <stdio.h>
13  
14   #include  "standard.h"
15   #include  "platform.h"
# Line 41 | Line 40 | int  nrept = 1;                                /* number of array repetitions */
40  
41   int stdinused = 0;                      /* stdin has been used by -f option? */
42  
43 < char  mainfn[MAXPATH];                  /* main file name */
43 > char  mainfn[PATH_MAX];                 /* main file name */
44   FILE  *mainfp = NULL;                   /* main file pointer */
45  
46   #define  progname  (xav[0])
# Line 888 | Line 887 | char  *fname;
887   openmain(iname)         /* open input, changing directory for file */
888   char  *iname;
889   {
890 <        static char  origdir[MAXPATH];
891 <        static char  curfn[MAXPATH];
890 >        static char  origdir[PATH_MAX];
891 >        static char  curfn[PATH_MAX];
892          static int  diffdir;
893          register char  *fpath;
894  
# Line 915 | Line 914 | char  *iname;
914                  return;
915          }
916          if (mainfp == NULL) {                   /* first call, initialize */
917 <                getwd(origdir);
917 >                getcwd(origdir, sizeof(origdir));
918          } else if (!strcmp(iname, curfn)) {     /* just need to rewind? */
919                  rewind(mainfp);
920                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines