From 0c779e8e4831c538918ae835ce3365af028e36ea Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 9 Aug 2019 17:01:02 +0200 Subject: [PATCH] patch 8.1.1833: allocating a bit too much when there is no bad word. Problem: Allocating a bit too much when spellbadword() does not find a bad word. Solution: Reset "len" when going to the next word. (Daniel Hahler, closes #4788) --- src/evalfunc.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/evalfunc.c b/src/evalfunc.c index 07a6768c2..29857d318 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -10755,6 +10755,7 @@ f_spellbadword(typval_T *argvars UNUSED, typval_T *rettv) } str += len; capcol -= len; + len = 0; } } } diff --git a/src/version.c b/src/version.c index adbf13802..72dd651d2 100644 --- a/src/version.c +++ b/src/version.c @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1833, /**/ 1832, /**/ -- 2.50.1