IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2005, 11:31:54 AM (21 years ago)
Author:
desonia
Message:

fixed some small bugs.

File:
1 edited

Legend:

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

    r3264 r3541  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-02-17 19:26:24 $
     11 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-03-29 21:31:54 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    150150static psBool componentAdd(const char *addNodeName, psS32 level)
    151151{
    152     psS32 i = 0;                  // Loop index variable.
     152    psS32 i = 0;                        // Loop index variable.
    153153    char name[strlen(addNodeName) + 1]; // buffer for writeable copy.
    154154    char *pname = name;
     
    185185    while (pname != NULL) {
    186186        firstComponent = pname;
    187         pname = strtok(pname, ".");
     187        pname = strchr(firstComponent, '.');
    188188        if (pname != NULL) {
    189189            *pname = '\0';
     
    325325    defaultLevel = cRoot->level;
    326326    strcpy(name, aname);
    327     pname = &name[1];
     327    pname = name+1;
    328328    while (pname != NULL) {
    329329        firstComponent = pname;
    330         pname = strtok(pname, ".");
     330        pname = strchr(firstComponent, '.');
    331331        if (pname != NULL) {
    332332            *pname = '\0';
Note: See TracChangeset for help on using the changeset viewer.