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

Comparing ray/src/px/ra_xim.c (file contents):
Revision 3.1 by greg, Sat Feb 22 02:07:28 2003 UTC vs.
Revision 3.2 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 35 | Line 35 | static char  radiance_rcsid[] =
35   #include <math.h>
36   #include <pwd.h>
37   #include <sys/types.h>
38 #ifdef SYSV
38   #include <string.h>
40 #else
41 #include <strings.h>
39   #include <sys/time.h>
43 #endif
40  
41   /* XimHeader.h */
42  
# Line 239 | Line 235 | double gamcor;
235          byte gmap[256];
236  
237          /* get width, height from radiance file */
238 <    bzero(xim, sizeof(XimImage));
238 >    memset(xim, '\0', sizeof(XimImage));
239      if (!RadianceGetSize(ifp, &width, &height))
240                  return 0;
241          xim->width = xim->bytes_line = width;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines