Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Robson Chase <josh@robsonchase.com>2021-02-27 05:32:16 +0300
committerJosh Robson Chase <josh@robsonchase.com>2021-02-27 05:33:29 +0300
commit5f25a0d47e3bfa6fcfce1c30803770e3502fac90 (patch)
tree287cd51fbb6ba61f0784a2f9b9448d46b3b1eda3 /src
parent5773dc6cbedf3c39c208cfabcb3675271c2b16b0 (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.cpp2
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) {