IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2005, 12:42:30 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psPixels.c

    r4230 r4321  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-13 20:43:40 $
     9 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-20 22:42:29 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    114114}
    115115
    116 psPixels* psPixelsCopy(psPixels* out, const psPixels* in)
    117 {
    118     if (in == NULL) {
     116psPixels* psPixelsCopy(psPixels* out, const psPixels* pixels)
     117{
     118    if (pixels == NULL) {
    119119        psError(PS_ERR_BAD_PARAMETER_NULL,true,PS_ERRORTEXT_psPixels_NULL);
    120120        psFree(out);
     
    122122    }
    123123
    124     out = psPixelsRealloc(out, in->n);
    125 
    126     memcpy(out->data,in->data, in->n*sizeof(psPixelCoord));
    127     out->n = in->n;
     124    out = psPixelsRealloc(out, pixels->n);
     125
     126    memcpy(out->data,pixels->data, pixels->n*sizeof(psPixelCoord));
     127    out->n = pixels->n;
    128128
    129129    return out;
Note: See TracChangeset for help on using the changeset viewer.