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

Comparing ray/src/px/psign.c (file contents):
Revision 2.21 by greg, Sat Jun 21 15:05:01 2003 UTC vs.
Revision 2.23 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *      7/1/87
8   */
9  
10 + #include  "copyright.h"
11 +
12 + #include  <string.h>
13 +
14   #include  "standard.h"
15   #include  "platform.h"
16   #include  "color.h"
# Line 204 | Line 208 | makemap()                      /* create the bit map */
208          ourbitmap = (BYTE *)bmalloc(ysiz*xdim);
209          if (ourbitmap == NULL)
210                  error(SYSTEM, "Out of memory in makemap");
211 <        bzero((char *)ourbitmap, ysiz*xdim);
211 >        memset((char *)ourbitmap, '\0', ysiz*xdim);
212   }
213  
214  
# Line 225 | Line 229 | FILE  *fp;
229                  len = strlen(buf);
230                  curl->s = (char *)malloc(len);
231                  curl->sp = (short *)malloc(sizeof(short)*len--);
232 <                if (curl->s == NULL | curl->sp == NULL)
232 >                if ((curl->s == NULL) | (curl->sp == NULL))
233                          goto memerr;
234                  if (len > maxline)
235                          maxline = len;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines