Commit a5aece6b authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

add const cast

parent 2c957e3d
......@@ -400,7 +400,7 @@ std::string decode(unsigned char *input, size_t len)
bmem = BIO_new_mem_buf(input, len);
bmem = BIO_push(b64, bmem);
BIO_read(bmem, str.data(), str.capacity());
BIO_read(bmem, const_cast<std::string::value_type *>(str.data()), str.capacity());
BIO_free_all(bmem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment