Changeset 546
- Timestamp:
- Apr 28, 2004, 12:20:22 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
sys/psString.c (modified) (2 diffs)
-
sysUtils/psString.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.c
r531 r546 8 8 * @author Eric Van Alst, MHPCC 9 9 * 10 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-04-2 7 22:39:48$10 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-04-28 22:20:22 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 82 82 // Copy input string to memory allocated up to nChar characters 83 83 // Return the copy 84 return strncpy(psAlloc( nChar + 1), str,nChar);84 return strncpy(psAlloc((size_t)nChar + 1), str, (size_t)nChar); 85 85 } 86 86 -
trunk/psLib/src/sysUtils/psString.c
r531 r546 8 8 * @author Eric Van Alst, MHPCC 9 9 * 10 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-04-2 7 22:39:48$10 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-04-28 22:20:22 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 82 82 // Copy input string to memory allocated up to nChar characters 83 83 // Return the copy 84 return strncpy(psAlloc( nChar + 1), str,nChar);84 return strncpy(psAlloc((size_t)nChar + 1), str, (size_t)nChar); 85 85 } 86 86
Note:
See TracChangeset
for help on using the changeset viewer.
