summaryrefslogtreecommitdiff
path: root/src/t_hash.c
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2017-01-11 19:24:19 +0200
committerGuy Benoish <guy.benoish@redislabs.com>2017-01-11 19:24:19 +0200
commit56c01c959ab6e86b5fbb2f882a30324619987947 (patch)
tree46c3bf721e4a311192bacac229bfa46aa1088075 /src/t_hash.c
parent634b0966106b48cbf2c51fadafa7482a5af77e64 (diff)
downloadredis-56c01c959ab6e86b5fbb2f882a30324619987947.tar.gz
enlarged buffer given to ld2string
Diffstat (limited to 'src/t_hash.c')
-rw-r--r--src/t_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_hash.c b/src/t_hash.c
index a49559336..f9ff8e4ee 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -620,7 +620,7 @@ void hincrbyfloatCommand(client *c) {
value += incr;
- char buf[256];
+ char buf[MAX_LONG_DOUBLE_CHARS];
int len = ld2string(buf,sizeof(buf),value,1);
new = sdsnewlen(buf,len);
hashTypeSet(o,c->argv[2]->ptr,new,HASH_SET_TAKE_VALUE);