Changeset 8576 for trunk/psLib/src/sys/psError.c
- Timestamp:
- Aug 24, 2006, 1:52:14 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psError.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r8247 r8576 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-08- 09 03:20:08$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-24 23:52:14 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 #include "psString.h" 26 26 #include "psTrace.h" 27 28 #define MAX_STRING_LENGTH 2048 29 27 30 28 31 #define MAX_ERROR_STACK_SIZE 64 … … 77 80 ...) 78 81 { 79 char errMsg[ 2048];82 char errMsg[MAX_STRING_LENGTH]; 80 83 psErr* err; 81 char msgName[ 1024];82 83 snprintf(msgName, 1024,"%s (%s:%d)",func,filename,lineno);84 char msgName[MAX_STRING_LENGTH]; 85 86 snprintf(msgName, MAX_STRING_LENGTH, "%s (%s:%d)", func, filename, lineno); 84 87 85 88 va_list argPtr; // variable list arguement pointer … … 92 95 va_start(argPtr, format); 93 96 94 vsnprintf(errMsg, 2048,format,argPtr);97 vsnprintf(errMsg, MAX_STRING_LENGTH, format, argPtr); 95 98 // Remove a single trailing \n from message -- it interferes with psErrorStackPrint 96 99 int len = strlen(errMsg);
Note:
See TracChangeset
for help on using the changeset viewer.
