From: cloudwalk Date: Sun, 24 Jan 2021 02:23:33 +0000 (+0000) Subject: keys: Fix intermittent buffer overflow when pasting text. From malice X-Git-Tag: xonotic-v0.8.5~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9bc373ec10163b47ecf6b93566b9f3b10ee178b2;p=xonotic%2Fdarkplaces.git keys: Fix intermittent buffer overflow when pasting text. From malice git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13092 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6c3cfd667f00484beee8b27d663a55cd6b53b43b --- diff --git a/keys.c b/keys.c index e93f83ac..deeb0667 100644 --- a/keys.c +++ b/keys.c @@ -743,7 +743,8 @@ Key_Console (int key, int unicode) } else if (*p == '\n' || *p == '\r' || *p == '\b') *p++ = ';'; - p++; + else + p++; } #else strtok(cbd, "\n\r\b");