Index: /trunk/psLib/src/sys/psErrorCodes.c
===================================================================
--- /trunk/psLib/src/sys/psErrorCodes.c	(revision 1872)
+++ /trunk/psLib/src/sys/psErrorCodes.c	(revision 1873)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-16 18:51:32 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-24 01:09:18 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -84,4 +84,9 @@
 const char *psErrorCodeString(psErrorCode code)
 {
+    // Check input argument is non-negative
+    if ( code < 0 ) {
+        return NULL;
+    }
+
     psErrorDescription* desc = getErrorDescription(code);
 
Index: /trunk/psLib/src/sysUtils/psErrorCodes.c
===================================================================
--- /trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1872)
+++ /trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1873)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-16 18:51:32 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-24 01:09:18 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -84,4 +84,9 @@
 const char *psErrorCodeString(psErrorCode code)
 {
+    // Check input argument is non-negative
+    if ( code < 0 ) {
+        return NULL;
+    }
+
     psErrorDescription* desc = getErrorDescription(code);
 
