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

Comparing ray/src/hd/rholo2l.c (file contents):
Revision 3.13 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 3.14 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include <signal.h>
9   #include <sys/time.h>
10 + #include <string.h>
11  
12   #include "rholo.h"
13   #include "random.h"
# Line 136 | Line 137 | register PACKET        *p;
137                                  /* write out the packet */
138          packrays(rtbuf, p);
139          if ((n = p->nr) < RPACKSIZ)     /* add flush block? */
140 <                bzero((char *)(rtbuf+6*n++), 6*sizeof(float));
140 >                memset((char *)(rtbuf+6*n++), '\0', 6*sizeof(float));
141          if (writebuf(rtpd[pn].w, (char *)rtbuf, 6*sizeof(float)*n) < 0)
142                  error(SYSTEM, "write error in queue_packet");
143          p->next = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines