IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6429


Ignore:
Timestamp:
Feb 15, 2006, 9:46:50 PM (20 years ago)
Author:
magnier
Message:

fixed error in getToken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psLib/src/astro/psTime.c

    r6269 r6429  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-02-01 00:17:44 $
     12 *  @version $Revision: 1.81.4.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-02-16 07:46:50 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    148148        cleanToken = cleanString(*inString, sLen);
    149149
     150        // XXX this logic was wrong:
     151        // if there are no more delimiters, the 0 char is at *inString + sLen
     152        // you need to check if *inString + sLen == 0
     153
    150154        // Move to end of token
    151         (*inString) += (sLen+1);
     155        // XXX (*inString) += (sLen+1);
     156        (*inString) += sLen;
     157        if (**inString != 0)
     158            (*inString) ++;
    152159
    153160    } else if(**inString!='\0' && sLen==0) {
Note: See TracChangeset for help on using the changeset viewer.