From 26b975a1209b938c28a1e968aa059814a11d0bd5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 28 May 2019 12:54:15 +0200 Subject: [PATCH] add const cast --- common/lib/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/utils.cpp b/common/lib/utils.cpp index ce72ecaeb..e944da54f 100644 --- a/common/lib/utils.cpp +++ b/common/lib/utils.cpp @@ -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(str.data()), str.capacity()); BIO_free_all(bmem);