IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8604


Ignore:
Timestamp:
Aug 25, 2006, 12:06:08 PM (20 years ago)
Author:
Paul Price
Message:

Using psStringAppendV instead of fixed length array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r8245 r8604  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-08-09 02:26:44 $
     13 *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-08-25 22:06:08 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    339339    write(logFD, head, strlen(head));
    340340    if (logMsg) {
    341         char msg[1024];
     341        psString msg = NULL;            // Message to print
     342        psStringAppendV(&msg, format, ap);
     343
     344        // detect multiple lines in message and indent each line by 4 spaces.
    342345        char* msgPtr;
    343         vsnprintf(msg,1024, format, ap);  // create message
    344 
    345         // detect multiple lines in message and indent each line by 4 spaces.
    346346        char *line = strtok_r(msg, "\n", &msgPtr);
    347347        while (line) {
Note: See TracChangeset for help on using the changeset viewer.