loolwsd/Util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e7d587d69460102f6ba690134c0ed3becc846e23
Author: Tor Lillqvist <[email protected]>
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);
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits