IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15496


Ignore:
Timestamp:
Nov 7, 2007, 4:59:58 PM (19 years ago)
Author:
Paul Price
Message:

No need to make string longer than its true length.

File:
1 edited

Legend:

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

    r14682 r15496  
    1313 *  @author David Robbins, MHPCC
    1414 *
    15  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-08-28 02:55:51 $
     15 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-11-08 02:59:58 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    101101    }
    102102
     103    nChar = PS_MIN(nChar, strlen(string));
     104
    103105    // Copy input string to memory allocated up to nChar characters
    104106    psString output = p_psStringAlloc(file, lineno, func, nChar + 1);
Note: See TracChangeset for help on using the changeset viewer.