From 6c3cfd667f00484beee8b27d663a55cd6b53b43b 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 --- keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keys.c b/keys.c index 3038eba6..d830e827 100644 --- a/keys.c +++ b/keys.c @@ -782,7 +782,8 @@ int Key_Parse_CommonKeys(cmd_state_t *cmd, qbool is_console, int key, int unicod } else if (*p == '\n' || *p == '\r' || *p == '\b') *p++ = ';'; - p++; + else + p++; } #else strtok(cbd, "\n\r\b"); -- 2.39.2