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.15 by greg, Fri Jun 20 00:25:49 2003 UTC vs.
Revision 2.19 by greg, Fri Jul 2 16:45:32 2004 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 #include  <stdio.h>
15  
16 #include  "standard.h"
16   #include  "platform.h"
17 + #include  "rtprocess.h"
18 + #include  "standard.h"
19   #include  "object.h"
20   #include  "otypes.h"
21  
# Line 29 | Line 30 | char  *inpspec;
30   {
31          OBJECT  lastobj;
32          FILE  *infp;
33 <        char  buf[1024];
33 >        char  buf[2048];
34          register int  c;
35  
36          lastobj = nobjects;
# Line 181 | Line 182 | int  firstobj, nobjs;
182                  free_os(o);             /* free client memory */
183                  freeqstr(o->oname);
184                  freefargs(&o->oargs);
185 <                bzero((void *)o, sizeof(OBJREC));
185 >                memset((void *)o, '\0', sizeof(OBJREC));
186          }
187          clearobjndx();
188                                          /* free objects off end */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines