Commit 23ddfcc4 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Fix token buffer indexing

BUG: 415249
BUG: 415463

FIXED-IN: 19.12.1
(cherry picked from commit 90b4f339)
parent e6034e3e
......@@ -265,8 +265,9 @@ void Vt102Emulation::addArgument()
void Vt102Emulation::addToCurrentToken(uint cc)
{
tokenBufferPos = qMin(tokenBufferPos, MAX_TOKEN_LENGTH - 1);
tokenBuffer[tokenBufferPos] = cc;
tokenBufferPos = qMin(tokenBufferPos + 1, MAX_TOKEN_LENGTH - 1);
tokenBufferPos++;
}
// Character Class flags used while decoding
......
Markdown is supported
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