From 9bc373ec10163b47ecf6b93566b9f3b10ee178b2 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 24 Jan 2021 02:23:33 +0000 Subject: [PATCH] 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 --- keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.2