Permalink
Browse files

patch 8.0.0875: crash with weird command sequence

Problem:    Crash with weird command sequence. (Dominique Pelle)
Solution:   Use vim_snprintf() instead of STRCPY().
  • Loading branch information...
brammool committed Aug 5, 2017
1 parent 22aa23f commit 0af2d32c21d48d450a7a1277b2029b9eeed6bebf
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/misc1.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
875,
/**/
874,
/**/

0 comments on commit 0af2d32

Please sign in to comment.