enlarged buffer given to ld2string

This commit is contained in:
Guy Benoish
2017-01-11 19:24:19 +02:00
parent 634b096610
commit 56c01c959a
3 changed files with 7 additions and 2 deletions

View File

@ -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);