This commit is contained in:
Robin Müller 2020-06-05 15:53:20 +02:00
parent dd210e99af
commit d7036edb94
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ ReturnValue_t SerialBufferAdapter<count_t>::deSerialize(const uint8_t** buffer,
}
}
//No Else If, go on with buffer
if (bufferLength >= *size) {
if (bufferLength <= *size) {
*size -= bufferLength;
memcpy(m_buffer, *buffer, bufferLength);
(*buffer) += bufferLength;