IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16982


Ignore:
Timestamp:
Mar 13, 2008, 11:50:53 AM (18 years ago)
Author:
eugene
Message:

need to realloc the images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/LoadData.c

    r16810 r16982  
    5151    if (!strcmp(headerSets[i].extdata, "NONE")) {
    5252      Nvalid++;
    53       if (Nvalid == NVALID) {
    54         NVALID += 10;
    55         REALLOCATE (images[0], Image, NVALID);
    56       }
     53      CHECK_REALLOCATE (images[0], Image, NVALID, Nvalid, 10);
    5754      continue;
    5855    }
     
    7067    *stars = MergeStars (*stars, Nstars, inStars, images[0][Nvalid].nstar);
    7168    Nvalid++;
     69    CHECK_REALLOCATE (images[0], Image, NVALID, Nvalid, 10);
    7270  }
    7371  free (name);
Note: See TracChangeset for help on using the changeset viewer.