IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 12:20:45 PM (20 years ago)
Author:
Paul Price
Message:

Updating to use psLib rel11. Main problem was that vector and array lengths ('n' element) are no longer set to equal the number of allocated values ('nalloc' element) when allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacTransform.c

    r5745 r6887  
    127127    if (*outputs == NULL) {
    128128        *outputs = psArrayAlloc(nImages);
     129        (*outputs)->n = nImages;
    129130        psTrace("stac.transform", 5, "Allocating space for transformed images, %dx%d\n", outnx, outny);
    130131        for (int i = 0; i < nImages; i++) {
     
    138139    if (errors && (*outErrors == NULL)) {
    139140        *outErrors = psArrayAlloc(errors->n);
     141        (*outErrors)->n = errors->n;
    140142        psTrace("stac.transform", 5, "Allocating space for transformed error images, %dx%d\n", outnx, outny);
    141143        for (int i = 0; i < nImages; i++) {
Note: See TracChangeset for help on using the changeset viewer.