diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-01-25 19:42:36 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-01-25 19:42:36 +0100 |
commit | 7606bad9d3a85ae286d1a668e99283ffebe8b935 (patch) | |
tree | b9e0ea21880b3c0d89b7e351ff78d113a652f408 | |
parent | e35882318fc6f2b8471d6b9feca59a5183f2defd (diff) |
Fix a size check.feature/deduplication
Change-Id: I509d12dcde6f56a2a7a9ee244e721d8028dec501
-rw-r--r-- | common/MessageQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/MessageQueue.cpp b/common/MessageQueue.cpp index 54f18715c..05bdf58c3 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,") |