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.1 by greg, Tue Nov 12 16:54:47 1991 UTC vs.
Revision 2.2 by greg, Tue Jun 16 13:06:58 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1990 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 45 | Line 45 | register char  *fname;
45          do {
46                  cp = pname;
47                  while (*sp && (*cp = *sp++) != ':')
48 <                        cp++;
48 >                        if (*cp == '\\') {              /* escape */
49 >                                if (*sp) *cp++ = *sp++;
50 >                        } else
51 >                                cp++;
52                  if (cp > pname && cp[-1] != '/')
53                          *cp++ = '/';
54                  strcpy(cp, fname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines