IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1969


Ignore:
Timestamp:
Oct 5, 2004, 3:05:41 PM (22 years ago)
Author:
harman
Message:

Moved \0 to end of new string

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r1731 r1969  
    88 *
    99 *  @author Eric Van Alst, MHPCC
    10  *   
    11  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-08 21:22:47 $
     10 *
     11 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-06 01:05:41 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5050    // Ensure the last byte is NULL character
    5151    if (nChar > 0) {
    52         returnValue[nChar - 1] = '\0';
     52        returnValue[nChar] = '\0';
    5353    }
    5454    // Return the string pointer
  • trunk/psLib/src/sysUtils/psString.c

    r1731 r1969  
    88 *
    99 *  @author Eric Van Alst, MHPCC
    10  *   
    11  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-08 21:22:47 $
     10 *
     11 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-06 01:05:41 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5050    // Ensure the last byte is NULL character
    5151    if (nChar > 0) {
    52         returnValue[nChar - 1] = '\0';
     52        returnValue[nChar] = '\0';
    5353    }
    5454    // Return the string pointer
Note: See TracChangeset for help on using the changeset viewer.