| # | 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) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |