[Libreoffice-commits] online.git: Branch 'feature/deduplication' - common/MessageQueue.cpp

Jan Holesovsky kendy at collabora.com
Wed Jan 25 18:58:59 UTC 2017


 common/MessageQueue.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7606bad9d3a85ae286d1a668e99283ffebe8b935
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Wed Jan 25 19:42:36 2017 +0100

    Fix a size check.
    
    Change-Id: I509d12dcde6f56a2a7a9ee244e721d8028dec501

diff --git a/common/MessageQueue.cpp b/common/MessageQueue.cpp
index 54f1871..05bdf58 100644
--- a/common/MessageQueue.cpp
+++ b/common/MessageQueue.cpp
@@ -158,7 +158,7 @@ bool extractRectangle(const std::vector<std::string>& tokens, int& x, int& y, in
     h = INT_MAX;
     part = 0;
 
-    if (tokens.size() < 4)
+    if (tokens.size() < 5)
         return false;
 
     if (tokens[3] == "EMPTY,")


More information about the Libreoffice-commits mailing list