1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add const cast

This commit is contained in:
Steffen Vogel 2019-05-28 12:54:15 +02:00
parent 5dbaa39b88
commit 26b975a120

View file

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