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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.8 by gregl, Thu Nov 20 11:39:57 1997 UTC vs.
Revision 3.9 by gregl, Fri Nov 21 17:47:56 1997 UTC

# Line 118 | Line 118 | int    nents;
118          }
119          if (outdev == NULL)
120                  return;
121 <        n = RPACKSIZ;                           /* allocate packet holder */
122 <        for (i = 0; i < nents; i++)
123 <                if (clist[i].nr > n)
124 <                        n = clist[i].nr;
121 >        n = 8*RPACKSIZ;                         /* allocate packet holder */
122          p = (PACKHEAD *)malloc(packsiz(n));
123          if (p == NULL)
124                  goto memerr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines