[Libreoffice-commits] online.git: loolwsd/LOOLProtocol.hpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Wed Nov 2 13:21:07 UTC 2016
loolwsd/LOOLProtocol.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5656c1271316d6067b383f986d718a5234c9b832
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Mon Oct 31 21:22:49 2016 -0400
loolwsd: cap abbraviated message length
Change-Id: Idddfd55ae9a9fe8c2ae0c78e416d541529adaa66
Reviewed-on: https://gerrit.libreoffice.org/30490
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/LOOLProtocol.hpp b/loolwsd/LOOLProtocol.hpp
index 855ca94..fe11f2e 100644
--- a/loolwsd/LOOLProtocol.hpp
+++ b/loolwsd/LOOLProtocol.hpp
@@ -172,7 +172,7 @@ namespace LOOLProtocol
return "";
}
- const auto firstLine = getFirstLine(message, length);
+ const auto firstLine = getFirstLine(message, std::min(length, 120));
// If first line is less than the length (minus newline), add ellipsis.
if (firstLine.size() < static_cast<std::string::size_type>(length) - 1)
More information about the Libreoffice-commits
mailing list