forked from aniani/vim
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user