IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9548


Ignore:
Timestamp:
Oct 13, 2006, 12:41:03 PM (20 years ago)
Author:
Paul Price
Message:

Fixing variable name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r9544 r9548  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-13 22:26:14 $
     14 *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-10-13 22:41:03 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    21302130{
    21312131    // length of string (log10 + 1) + \0
    2132     // if n is 0, length is 1 char + \0
    2133     size_t length = n ? (size_t)log10((double)n) + 1 + 1
     2132    // if value is 0, length is 1 char + \0
     2133    size_t length = value ? (size_t)log10((double)value) + 1 + 1
    21342134                    : 2;
    21352135    psString string = psStringAlloc(length);
    2136     snprintf(string, length, "%li", (long int)n);
     2136    snprintf(string, length, "%li", (long int)value);
    21372137
    21382138    return string;
Note: See TracChangeset for help on using the changeset viewer.