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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
875,
|
||||
/**/
|
||||
874,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user