diff --git a/src/ckdb.h b/src/ckdb.h index 0d4b6cec..532fb00f 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #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_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_data.c b/src/ckdb_data.c index a64ea4e7..c3a86ac3 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -2800,7 +2800,7 @@ double payout_stats(PAYOUTS *payouts, char *statname) numlen = tab - pos; if (numlen >= sizeof(buf)) numlen = sizeof(buf) - 1; - STRNCPYSIZ(buf, pos, numlen); + STRNCPYSIZ(buf, pos, numlen+1); // ctv will only return the seconds ret = atof(buf); }