pack: increase buffer size to format double
@@ -478,7 +478,7 @@ static int msgpack2json(char *buf, int *off, size_t left,
case MSGPACK_OBJECT_FLOAT32:
case MSGPACK_OBJECT_FLOAT64:
{
- char temp[32] = {0};
+ char temp[512] = {0};
i = snprintf(temp, sizeof(temp)-1, "%.16g", o->via.f64);
ret = try_to_write(buf, off, left, temp, i);
}
