IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23815


Ignore:
Timestamp:
Apr 10, 2009, 3:05:23 PM (17 years ago)
Author:
eugene
Message:

fix memory overrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/matrix/F_uncompress_data.c

    r23724 r23815  
    4444      return (FALSE);
    4545    }
     46    *Nout = tNout / out_pixsize;
    4647
    4748    // the resulting uncompressed data is byteswapped
    48     if (!gfits_byteswap_zdata (outdata, tNout, out_pixsize)) return (FALSE);
     49    if (!gfits_byteswap_zdata (outdata, *Nout, out_pixsize)) return (FALSE);
    4950
    50     *Nout = tNout / out_pixsize;
    5151    return (TRUE);
    5252  }
Note: See TracChangeset for help on using the changeset viewer.