diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-05 23:00:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-05 23:00:53 +0200 |
commit | 0af2d32c21d48d450a7a1277b2029b9eeed6bebf (patch) | |
tree | c10e36cd847e113283ca4fb9875952800c3cc850 | |
parent | 22aa23fd8cf74f535dba5eb8f6d02107ba2c512c (diff) | |
download | vim-git-0af2d32c21d48d450a7a1277b2029b9eeed6bebf.tar.gz |
patch 8.0.0875: crash with weird command sequencev8.0.0875
Problem: Crash with weird command sequence. (Dominique Pelle)
Solution: Use vim_snprintf() instead of STRCPY().
-rw-r--r-- | src/misc1.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 875, +/**/ 874, /**/ 873, |