From: Bram Moolenaar Date: Sat, 5 Aug 2017 21:00:53 +0000 (+0200) Subject: patch 8.0.0875: crash with weird command sequence X-Git-Tag: v8.0.0875 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0af2d32c21d48d450a7a1277b2029b9eeed6bebf;p=vim 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 f19c2dc81..4e51bed25 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -4641,7 +4641,7 @@ home_replace( */ 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 bc72c831d..da594f762 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 */ +/**/ + 875, /**/ 874, /**/