[Libreoffice-commits] online.git: loolwsd/Util.cpp
Tor Lillqvist
tml at collabora.com
Thu Sep 22 11:36:52 UTC 2016
loolwsd/Util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e7d587d69460102f6ba690134c0ed3becc846e23
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Sep 22 14:35:16 2016 +0300
Don't use << to write a non-nul-terminated naked char pointer
diff --git a/loolwsd/Util.cpp b/loolwsd/Util.cpp
index 6599959..0d137c4 100644
--- a/loolwsd/Util.cpp
+++ b/loolwsd/Util.cpp
@@ -87,7 +87,7 @@ namespace rng
{
std::stringstream ss;
Poco::Base64Encoder b64(ss);
- b64 << getBytes(length).data();
+ b64.write(getBytes(length).data(), length);
return ss.str().substr(0, length);
}
More information about the Libreoffice-commits
mailing list