Skip to content

Commit 0af2d32

Browse files
committed
patch 8.0.0875: crash with weird command sequence
Problem: Crash with weird command sequence. (Dominique Pelle) Solution: Use vim_snprintf() instead of STRCPY().
1 parent 22aa23f commit 0af2d32

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/misc1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4641,7 +4641,7 @@ home_replace(
46414641
*/
46424642
if (buf != NULL && buf->b_help)
46434643
{
4644-
STRCPY(dst, gettail(src));
4644+
vim_snprintf((char *)dst, dstlen, "%s", gettail(src));
46454645
return;
46464646
}
46474647

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
875,
772774
/**/
773775
874,
774776
/**/

0 commit comments

Comments
 (0)