Browse Source

ckdb - fix number copy end

master
kanoi 10 years ago
parent
commit
8d6709f782
  1. 2
      src/ckdb.h
  2. 2
      src/ckdb_data.c

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.0" #define DB_VERSION "1.0.0"
#define CKDB_VERSION DB_VERSION"-1.046" #define CKDB_VERSION DB_VERSION"-1.047"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

2
src/ckdb_data.c

@ -2800,7 +2800,7 @@ double payout_stats(PAYOUTS *payouts, char *statname)
numlen = tab - pos; numlen = tab - pos;
if (numlen >= sizeof(buf)) if (numlen >= sizeof(buf))
numlen = sizeof(buf) - 1; numlen = sizeof(buf) - 1;
STRNCPYSIZ(buf, pos, numlen); STRNCPYSIZ(buf, pos, numlen+1);
// ctv will only return the seconds // ctv will only return the seconds
ret = atof(buf); ret = atof(buf);
} }

Loading…
Cancel
Save