From ece29e80131afdd4bb7aa74f62b98cf97f1090b5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 6 Aug 2014 12:49:18 +0200 Subject: [PATCH] updated for version 7.4.390 Problem: Advancing pointer over end of a string. Solution: Init quote character to -1 instead of zero. (Dominique Pelle) --- src/misc1.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc1.c b/src/misc1.c index 3a834aa0c..2c28aae84 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -5503,7 +5503,7 @@ cin_has_js_key(text) char_u *text; { char_u *s = skipwhite(text); - int quote = 0; + int quote = -1; if (*s == '\'' || *s == '"') { diff --git a/src/version.c b/src/version.c index d5aaa9050..d2de43f7a 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 390, /**/ 389, /**/ -- 2.50.1