ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/common/data.c
(Generate patch)

Comparing ray/src/common/data.c (file contents):
Revision 2.4 by greg, Sun Mar 9 19:11:51 2025 UTC vs.
Revision 2.6 by greg, Wed Dec 17 18:55:28 2025 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include  <time.h>
11  
12   #include  "platform.h"
13 #include  "paths.h"
13   #include  "standard.h"
14   #include  "color.h"
15   #include  "view.h"
# Line 341 | Line 340 | getspec(               /* load hyperspectral image as data */
340                  error(WARNING, errmsg);
341          }
342   #endif
343 <        if ((pp->arr.s = (uby8 *)malloc(i)) == NULL)
343 >        if ((pp->arr.s = (COLRV *)malloc(sizeof(COLRV)*i)) == NULL)
344                  goto memerr;
345          for (y = ns; y-- > 0; )                 /* read each scanline */
346                  if (freadscolrs(pp->arr.s + y*sl*(si.nc+1), si.nc, sl, fp) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)