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)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 07a6768..29857d3 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -10755,6 +10755,7 @@
}
str += len;
capcol -= len;
+ len = 0;
}
}
}
diff --git a/src/version.c b/src/version.c
index adbf138..72dd651 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1833,
+/**/
1832,
/**/
1831,