0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0875: crash with weird command sequence

Problem:    Crash with weird command sequence. (Dominique Pelle)
Solution:   Use vim_snprintf() instead of STRCPY().
This commit is contained in:
Bram Moolenaar
2017-08-05 23:00:53 +02:00
parent 22aa23fd8c
commit 0af2d32c21
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
875,
/**/
874,
/**/