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
committerantirez <antirez@gmail.com>2018-02-13 15:51:36 +0100
commita64f36e5562afedb76dbb13d602f840aa6c39681 (patch)
tree76e7e51d0197036b588c4f99f2ec6af2c7fcd82c /src/t_hash.c
parentf1705801951775288766a3a2374ee2a802575da7 (diff)
downloadredis-a64f36e5562afedb76dbb13d602f840aa6c39681.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 be73932c5..fa3a893a6 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -616,7 +616,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);