From 6d253af691473067aec7961ce412e4f546dac92b Mon Sep 17 00:00:00 2001 From: john30 Date: Thu, 20 Nov 2014 10:15:53 +0100 Subject: [PATCH] check maximum position --- src/lib/ebus/data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index fd765777..a464d9de 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -175,7 +175,7 @@ result_t DataField::create(std::vector::iterator& it, break; } - if (pos > maxPos) { // TODO check this in real offset as well + if (pos > maxPos) { result = RESULT_ERR_INVALID_ARG; // invalid pos definition break; }