Changeset 19070
- Timestamp:
- Aug 14, 2008, 2:45:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psString.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.c
r15523 r19070 13 13 * @author David Robbins, MHPCC 14 14 * 15 * @version $Revision: 1.6 0$ $Name: not supported by cvs2svn $16 * @date $Date: 200 7-11-09 00:47:41$15 * @version $Revision: 1.61 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2008-08-15 00:45:18 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 158 158 // find the size of the string to append 159 159 // C99 guarentees vsnprintf() to work as expected with size = 0 160 // BUT: the output cannot be a NULL string 160 161 va_copy(apCopy, ap); 161 tailLength = vsnprintf(*dest, 0, format, apCopy); 162 char tmp = 0; 163 tailLength = vsnprintf(&tmp, 0, format, apCopy); 162 164 va_end(apCopy); 163 165 … … 240 242 // C99 guarentees vsnprintf() to work as expected with size = 0 241 243 va_copy(apCopy, ap); 242 headLength = vsnprintf(*dest, 0, format, apCopy); 244 char tmp = 0; 245 headLength = vsnprintf(&tmp, 0, format, apCopy); 243 246 va_end(apCopy); 244 247
Note:
See TracChangeset
for help on using the changeset viewer.
