IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2005, 4:07:27 PM (21 years ago)
Author:
desonia
Message:

fixed problem that broke Linux.

File:
1 edited

Legend:

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

    r3682 r3765  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2005-04-07 20:27:41 $
     14*  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2005-04-23 02:07:27 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    186186
    187187    // Allocate and set metadata item comment
    188     metadataItem->comment = (char *)psAlloc(sizeof(char) * MAX_STRING_LENGTH);
    189188    if (comment == NULL) {
    190189        // Per SDRS, null isn't allowed, must use "" instead
    191         strncpy(metadataItem->comment, "", MAX_STRING_LENGTH);
     190        metadataItem->comment = psStringCopy("");
    192191    } else {
    193         strncpy(metadataItem->comment, comment, MAX_STRING_LENGTH);
     192        metadataItem->comment = psStringCopy(comment);
    194193    }
    195194
Note: See TracChangeset for help on using the changeset viewer.