Index: trunk/psLib/src/sys/psString.c
===================================================================
--- trunk/psLib/src/sys/psString.c	(revision 19070)
+++ trunk/psLib/src/sys/psString.c	(revision 29932)
@@ -48,4 +48,21 @@
     psString string = p_psAlloc(file, lineno, func, nChar + 1);
     psMemSetDeallocator(string, (psFreeFunc)stringFree);
+
+    return string;
+}
+
+
+psString p_psStringRealloc(const char *file,
+			   unsigned int lineno,
+			   const char *func,
+			   psString string,
+			   size_t nChar)
+{
+    if (!string) {
+	string = p_psAlloc(file, lineno, func, nChar + 1);
+	psMemSetDeallocator(string, (psFreeFunc)stringFree);
+    } else {
+        string = p_psRealloc(file, lineno, func, string, nChar + 1);
+    }
 
     return string;
