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

Comparing ray/src/hd/rhd_geom.c (file contents):
Revision 3.11 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 3.12 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Geometry drawing operations for OpenGL driver.
6   */
7  
8 + #include <string.h>
9 +
10   #include "radogl.h"
11   #include "rhdriver.h"
12  
# Line 81 | Line 83 | gmEndGeom()                    /* make next list current */
83                          freestr(gmCurrent[i].gfile);
84                  }
85          }
86 <        bcopy((void *)gmNext, (void *)gmCurrent, sizeof(gmNext));
87 <        bzero((void *)gmNext, sizeof(gmNext));
86 >        memcpy((void *)gmCurrent, (void *)gmNext, sizeof(gmNext));
87 >        memset((void *)gmNext, '\0', sizeof(gmNext));
88   }
89  
90  
# Line 196 | Line 198 | gmEndPortal()                  /* close portal list and return GL lis
198                  }
199          FORALLPORT(curportlist, n)              /* free old file list */
200                  freestr(curportlist[n]);
201 <        bcopy((void *)newportlist, (void *)curportlist, sizeof(newportlist));
202 <        bzero((void *)newportlist, sizeof(newportlist));
201 >        memcpy((void *)curportlist, (void *)newportlist, sizeof(newportlist));
202 >        memset((void *)newportlist, '\0', sizeof(newportlist));
203          return(gmPortals);                      /* return GL list id */
204   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines