Commit dd52d722 authored by Grider Li's avatar Grider Li
Browse files

Fix z-modem detection by using proper string index

parent 5a98cdf9
Pipeline #192410 passed with stage
in 2 minutes and 11 seconds
......@@ -244,7 +244,7 @@ void Emulation::receiveData(const char *text, int length)
// this check into the above for loop?
auto *found = static_cast<const char *>(memchr(text, '\030', length));
if (found) {
auto startPos = text - found;
auto startPos = found - text;
if (startPos < 0) {
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment