IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9002


Ignore:
Timestamp:
Sep 26, 2006, 5:50:19 PM (20 years ago)
Author:
Paul Price
Message:

Fixing off-by-one error on \0.

File:
1 edited

Legend:

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

    r9001 r9002  
    55 *  @author Joshua Hoblitt, University of Hawaii
    66 *
    7  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-09-27 03:28:52 $
     7 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-09-27 03:50:19 $
    99 *
    1010 *  Copyright 2006 University of Hawaii
     
    4949
    5050    // append '\0' to the end of the string
    51     str[used + 1] = '\0';
     51    str[used] = '\0';
    5252
    5353    return str;
Note: See TracChangeset for help on using the changeset viewer.