IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2006, 9:53:36 AM (20 years ago)
Author:
Paul Price
Message:

Applying patch from RHL to remove extraneous \n from end of psError messages.

File:
1 edited

Legend:

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

    r4556 r7250  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-07-15 02:33:54 $
     12 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-05-31 19:53:36 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9191
    9292    vsnprintf(errMsg,2048,format,argPtr);
     93    // Remove a single trailing \n from message -- it interferes with psErrorStackPrint
     94    int len = strlen(errMsg);
     95    if (len > 0 && errMsg[len - 1] == '\n') {
     96        errMsg[len - 1] = '\0';
     97        len--;
     98    }
     99
    93100    err = psErrAlloc(msgName,code,errMsg);
    94101    pushErrorStack(err);
Note: See TracChangeset for help on using the changeset viewer.