Index: trunk/psLib/src/sys/psString.c
===================================================================
--- trunk/psLib/src/sys/psString.c	(revision 15498)
+++ trunk/psLib/src/sys/psString.c	(revision 15502)
@@ -13,6 +13,6 @@
  *  @author David Robbins, MHPCC
  *
- *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-11-08 03:12:24 $
+ *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-11-08 04:22:23 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -36,5 +36,5 @@
 static void stringFree(psString string)
 {
-    // this function is only nessicary so psMemCheckString has a function
+    // this function is only necessary so psMemCheckString has a function
     // pointer address to test against
 }
@@ -46,8 +46,4 @@
                          size_t nChar)
 {
-    if (nChar < 1) {
-        return NULL;
-    }
-
     psString string = p_psAlloc(file, lineno, func, nChar + 1);
     psMemSetDeallocator(string, (psFreeFunc)stringFree);
@@ -75,5 +71,5 @@
 
     // Output string
-    psString output = p_psStringAlloc(file, lineno, func, strlen(string) + 1);
+    psString output = p_psStringAlloc(file, lineno, func, strlen(string));
 
     // Copy input string to memory just allocated
@@ -102,8 +98,6 @@
     }
 
-    nChar = PS_MIN(nChar, strlen(string));
-
     // Copy input string to memory allocated up to nChar characters
-    psString output = p_psStringAlloc(file, lineno, func, nChar + 1);
+    psString output = p_psStringAlloc(file, lineno, func, nChar);
     output = strncpy(output, string, nChar);
 
