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.7 by greg, Thu Jun 18 16:14:43 1992 UTC vs.
Revision 2.8 by greg, Mon Jun 22 13:59:53 1992 UTC

# Line 66 | Line 66 | int  nlines, maxline;                  /* text dimensions */
66   int  maxwidth;                          /* maximum line width (dvi) */
67  
68   extern char  *getenv();
69 extern char  *malloc(), *calloc();
69  
70  
71   main(argc, argv)
# Line 165 | Line 164 | makemap()                      /* create the bit map */
164          if (ysiz % SSS)
165                  ysiz += SSS - ysiz%SSS;
166          xdim = (xsiz+7)/8;
167 <        ourbitmap = (BYTE *)calloc(ysiz, xdim);
167 >        ourbitmap = (BYTE *)bmalloc(ysiz*xdim);
168          if (ourbitmap == NULL)
169                  error(SYSTEM, "Out of memory in makemap");
170 +        bzero((char *)ourbitmap, ysiz*xdim);
171   }
172  
173  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines