IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2005, 9:11:07 AM (20 years ago)
Author:
desonia
Message:

fixed case in psStringNCopy where nChar==0 is not null terminated.
(Bug #597)

File:
1 edited

Legend:

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

    r4540 r5569  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-07-12 19:12:01 $
     14 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-11-22 19:11:07 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5353
    5454    // Ensure the last byte is NULL character
    55     if (nChar > 0) {
    56         returnValue[nChar] = '\0';
    57     }
     55    returnValue[nChar] = '\0';
     56
    5857    // Return the string pointer
    5958    return returnValue;
Note: See TracChangeset for help on using the changeset viewer.