Page MenuHomePhabricator

D11836.id39661.diff
No OneTemporary

D11836.id39661.diff

diff --git a/native/cpp/CommonCpp/CryptoTools/Session.cpp b/native/cpp/CommonCpp/CryptoTools/Session.cpp
--- a/native/cpp/CommonCpp/CryptoTools/Session.cpp
+++ b/native/cpp/CommonCpp/CryptoTools/Session.cpp
@@ -154,7 +154,7 @@
". Hash: " +
std::string{messageHashBuffer.begin(), messageHashBuffer.end()}};
}
- return std::string{(char *)decryptedMessage.data(), decryptedSize};
+ return std::string{decryptedMessage.begin(), decryptedMessage.end()};
}
std::string Session::decryptSequential(EncryptedData &encryptedData) {
@@ -199,7 +199,7 @@
std::string{::olm_session_last_error(session)} + ". Hash: " +
std::string{messageHashBuffer.begin(), messageHashBuffer.end()}};
}
- return std::string{(char *)decryptedMessage.data(), decryptedSize};
+ return std::string{decryptedMessage.begin(), decryptedMessage.end()};
}
int Session::getVersion() {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 11:24 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2536126
Default Alt Text
D11836.id39661.diff (900 B)

Event Timeline