patch 8.0.0875: crash with weird command sequence
Problem: Crash with weird command sequence. (Dominique Pelle)
Solution: Use vim_snprintf() instead of STRCPY().
diff --git a/src/misc1.c b/src/misc1.c
index f19c2dc..4e51bed 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -4641,7 +4641,7 @@
*/
if (buf != NULL && buf->b_help)
{
- STRCPY(dst, gettail(src));
+ vim_snprintf((char *)dst, dstlen, "%s", gettail(src));
return;
}
diff --git a/src/version.c b/src/version.c
index bc72c83..da594f7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 875,
+/**/
874,
/**/
873,