| # | Line 343 | Line 343 | getspec( /* load hyperspectral image as data */ | |
|---|---|---|
| 343 | #endif | |
| 344 | if ((pp->arr.s = (uby8 *)malloc(i)) == NULL) | |
| 345 | goto memerr; | |
| 346 | < | for (y = 0; y < ns; y++) /* read each scanline */ |
| 346 | > | for (y = ns; y-- > 0; ) /* read each scanline */ |
| 347 | if (freadscolrs(pp->arr.s + y*sl*(si.nc+1), si.nc, sl, fp) < 0) | |
| 348 | goto readerr; | |
| 349 | fclose(fp); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |