Index: /trunk/psLib/src/sys/psString.c
===================================================================
--- /trunk/psLib/src/sys/psString.c	(revision 3996)
+++ /trunk/psLib/src/sys/psString.c	(revision 3997)
@@ -1,4 +1,7 @@
 
 /** @file  psString.c
+ *
+ * -*- mode: C; c-basic-indent: 4; tab-width: 8; indent-tabs-mode: nil -*-
+ * vim: set cindent ts=8 sw=4 expandtab:
  *
  *  @brief Contains the definition of string utility functions
@@ -9,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-05-06 18:15:25 $
+ *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-05-20 01:41:17 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -63,4 +66,8 @@
     ssize_t         tailLength;         // length of string to append
 
+    if (!dest || !format) {
+        return 0;
+    }
+
     if (!*dest) {
         *dest = psStringCopy("");
@@ -103,4 +110,8 @@
     ssize_t         headLength;         // length of string to prepend
     char            *oldDest;           // copy of original string
+
+    if (!dest || !format) {
+        return 0;
+    }
 
     if (!*dest) {
Index: /trunk/psLib/src/sysUtils/psString.c
===================================================================
--- /trunk/psLib/src/sysUtils/psString.c	(revision 3996)
+++ /trunk/psLib/src/sysUtils/psString.c	(revision 3997)
@@ -1,4 +1,7 @@
 
 /** @file  psString.c
+ *
+ * -*- mode: C; c-basic-indent: 4; tab-width: 8; indent-tabs-mode: nil -*-
+ * vim: set cindent ts=8 sw=4 expandtab:
  *
  *  @brief Contains the definition of string utility functions
@@ -9,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-05-06 18:15:25 $
+ *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-05-20 01:41:17 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -63,4 +66,8 @@
     ssize_t         tailLength;         // length of string to append
 
+    if (!dest || !format) {
+        return 0;
+    }
+
     if (!*dest) {
         *dest = psStringCopy("");
@@ -103,4 +110,8 @@
     ssize_t         headLength;         // length of string to prepend
     char            *oldDest;           // copy of original string
+
+    if (!dest || !format) {
+        return 0;
+    }
 
     if (!*dest) {
