IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2013, 11:06:10 AM (13 years ago)
Author:
eugene
Message:

FtableToImage was failing to allocate enough memory for the new table to fill the FITS block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_2.c

    r34749 r35162  
    199199}
    200200
    201 Image *Image_PS1_DEV_2_ToInternal (Image_PS1_DEV_2 *in, off_t Nvalues) {
     201Image *Image_PS1_DEV_2_ToInternal (Image_PS1_DEV_2 *in, off_t Nvalues, off_t Nalloc) {
    202202
    203203  off_t i;
    204204  Image *out;
    205205
    206   ALLOCATE_ZERO (out, Image, Nvalues);
     206  char *buffer;
     207  ALLOCATE_ZERO (buffer, char, Nalloc);
     208  out = (Image *) buffer;
     209  // ALLOCATE_ZERO (out, Image, Nvalues);
    207210
    208211  for (i = 0; i < Nvalues; i++) {
Note: See TracChangeset for help on using the changeset viewer.