Changeset 4434 for trunk/psLib/src/sys/psString.c
- Timestamp:
- Jun 29, 2005, 2:33:36 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psString.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.c
r4409 r4434 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 28 20:17:52$14 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-30 00:33:36 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 20 #include <stdlib.h> 21 21 #include <string.h> 22 #include <limits.h> 22 23 #include "psString.h" 23 24 #include "psMemory.h" … … 34 35 } 35 36 36 psString psStringNCopy(const char *string, int nChar)37 psString psStringNCopy(const char *string, unsigned int nChar) 37 38 { 38 39 char *returnValue = NULL; 39 40 40 41 // Check the number of characters to copy is non-negative 41 if (nChar < 0) {42 if (nChar == UINT_MAX) { 42 43 // Log error message and return NULL 43 44 psError(PS_ERR_BAD_PARAMETER_VALUE, true,
Note:
See TracChangeset
for help on using the changeset viewer.
