diff options
author | Josh Robson Chase <josh@robsonchase.com> | 2021-02-27 05:32:16 +0300 |
---|---|---|
committer | Josh Robson Chase <josh@robsonchase.com> | 2021-02-27 05:33:29 +0300 |
commit | 5f25a0d47e3bfa6fcfce1c30803770e3502fac90 (patch) | |
tree | 287cd51fbb6ba61f0784a2f9b9448d46b3b1eda3 /src | |
parent | 5773dc6cbedf3c39c208cfabcb3675271c2b16b0 (diff) |
FIX(ice): Use the encoded array size to construct the base64 string
Previously, the un-encoded array length was used to construct a string
from the encoded byte array, resulting in truncated base64.
Diffstat (limited to 'src')
-rw-r--r-- | src/murmur/MurmurIce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/murmur/MurmurIce.cpp b/src/murmur/MurmurIce.cpp index a0a9317a1..4bc5a4bd5 100644 --- a/src/murmur/MurmurIce.cpp +++ b/src/murmur/MurmurIce.cpp @@ -87,7 +87,7 @@ static std::string iceBase64(const std::string &s) { QByteArray ba(s.data(), static_cast< int >(s.size())); QByteArray ba64 = ba.toBase64(); - return std::string(ba64.data(), static_cast< size_t >(ba.size())); + return std::string(ba64.data(), static_cast< size_t >(ba64.size())); } static void logToLog(const ServerDB::LogRecord &r, Murmur::LogEntry &le) { |