summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-02 20:14:23 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-02 20:14:23 +0100
commit339c1bdbdfb823c4ea36242f0a4f083cbc010b84 (patch)
treeada49e5b025ccb6e176a9b0784547cc3e948e649 /src
parenta11919fa44fb43e947ef7871f31096a79429ec8a (diff)
downloadvim-git-339c1bdbdfb823c4ea36242f0a4f083cbc010b84.tar.gz
patch 8.2.2282: length check mismatch with argument of strncmp()v8.2.2282
Problem: Length check mismatch with argument of strncmp(). (Christian Brabandt) Solution: Adjust length check.
Diffstat (limited to 'src')
-rw-r--r--src/ui.c10
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ui.c b/src/ui.c
index d29c26dab..ed565276c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1012,13 +1012,11 @@ fill_input_buf(int exit_on_error UNUSED)
}
while (len-- > 0)
{
- /*
- * If a CTRL-C was typed, remove it from the buffer and set
- * got_int. Also recognize CTRL-C with modifyOtherKeys set, in two
- * forms.
- */
+ // If a CTRL-C was typed, remove it from the buffer and set
+ // got_int. Also recognize CTRL-C with modifyOtherKeys set, in two
+ // forms.
if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
- || (len >= 9 && STRNCMP(inbuf + inbufcount,
+ || (len >= 10 && STRNCMP(inbuf + inbufcount,
"\033[27;5;99~", 10) == 0)
|| (len >= 7 && STRNCMP(inbuf + inbufcount,
"\033[99;5u", 7) == 0)))
diff --git a/src/version.c b/src/version.c
index b54cf0a39..ed0b10236 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2282,
+/**/
2281,
/**/
2280,