From 8d6709f782aa8f916e8cf22d662157b96da416d6 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 31 Mar 2015 22:00:00 +1100 Subject: [PATCH] ckdb - fix number copy end --- src/ckdb.h | 2 +- src/ckdb_data.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }