Index: trunk/psLib/src/sys/psLogMsg.c
===================================================================
--- trunk/psLib/src/sys/psLogMsg.c	(revision 8245)
+++ trunk/psLib/src/sys/psLogMsg.c	(revision 8604)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-25 22:06:08 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -339,9 +339,9 @@
     write(logFD, head, strlen(head));
     if (logMsg) {
-        char msg[1024];
+        psString msg = NULL;            // Message to print
+        psStringAppendV(&msg, format, ap);
+
+        // detect multiple lines in message and indent each line by 4 spaces.
         char* msgPtr;
-        vsnprintf(msg,1024, format, ap);  // create message
-
-        // detect multiple lines in message and indent each line by 4 spaces.
         char *line = strtok_r(msg, "\n", &msgPtr);
         while (line) {
