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

Comparing ray/src/common/readobj.c (file contents):
Revision 2.13 by schorsch, Sat Jun 7 12:50:20 2003 UTC vs.
Revision 2.16 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   #include "copyright.h"
11  
12   #include  <ctype.h>
13 + #include  <string.h>
14   #include  <stdio.h>
14 #ifdef _WIN32
15 #define popen _popen
16 #define pclose _pclose
17 #endif
15  
16   #include  "standard.h"
17 + #include  "platform.h"
18   #include  "object.h"
19   #include  "otypes.h"
20  
# Line 167 | Line 165 | newobject()                            /* get a new object */
165  
166   void
167   freeobjects(firstobj, nobjs)            /* free a range of objects */
168 < OBJECT  firstobj, nobjs;
168 > int  firstobj, nobjs;
169   {
170          register int  obj;
171                                          /* check bounds */
# Line 183 | Line 181 | OBJECT  firstobj, nobjs;
181                  free_os(o);             /* free client memory */
182                  freeqstr(o->oname);
183                  freefargs(&o->oargs);
184 <                bzero((void *)o, sizeof(OBJREC));
184 >                memset((void *)o, '\0', sizeof(OBJREC));
185          }
186          clearobjndx();
187                                          /* free objects off end */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines