IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2004, 4:45:43 PM (22 years ago)
Author:
desonia
Message:

Fixes for Mac use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psBitSet.c

    r965 r1041  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-06-10 00:29:09 $
     12 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-06-15 02:45:43 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    222222    int i = 0;
    223223    int numBits = inBitSet->n*8;
    224     char* outString = psAlloc((size_t)numBits);
     224    char* outString = psAlloc((size_t)numBits+1);
    225225    for(i=0; i<numBits; i++) {
    226226        outString[numBits-i-1] = (psBitSetTest(inBitSet, i) == 1)?'1':'0';
    227227    }
    228228
     229    outString[numBits] = 0;
     230
    229231    return outString;
    230232}
Note: See TracChangeset for help on using the changeset viewer.