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

Comparing ray/src/rt/m_mist.c (file contents):
Revision 2.12 by greg, Mon Mar 10 17:26:26 2003 UTC vs.
Revision 2.13 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 7 | Line 7 | static const char RCSid[] = "$Id";
7  
8   #include "copyright.h"
9  
10 < #include  "ray.h"
10 > #include <string.h>
11  
12 + #include  "ray.h"
13   #include  "source.h"
14  
15   /*
# Line 71 | Line 72 | register char  *id;
72   {
73          register char  *cp;
74                                                  /* check for relay sources */
75 <        while ((cp = index(id, RELAYDELIM)) != NULL) {
75 >        while ((cp = strchr(id, RELAYDELIM)) != NULL) {
76                  if (!(sp->sflags & SVIRTUAL) || sp->so == NULL)
77                          return(0);
78                  if (strncmp(id, sp->so->oname, cp-id) || sp->so->oname[cp-id])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines