Changeset 3765 for trunk/psLib/src/collections/psMetadata.c
- Timestamp:
- Apr 22, 2005, 4:07:27 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psMetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psMetadata.c
r3682 r3765 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.5 8$ $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 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 186 186 187 187 // Allocate and set metadata item comment 188 metadataItem->comment = (char *)psAlloc(sizeof(char) * MAX_STRING_LENGTH);189 188 if (comment == NULL) { 190 189 // Per SDRS, null isn't allowed, must use "" instead 191 strncpy(metadataItem->comment, "", MAX_STRING_LENGTH);190 metadataItem->comment = psStringCopy(""); 192 191 } else { 193 strncpy(metadataItem->comment, comment, MAX_STRING_LENGTH);192 metadataItem->comment = psStringCopy(comment); 194 193 } 195 194
Note:
See TracChangeset
for help on using the changeset viewer.
