mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.1.0176: overlapping string argument for strcpy()
Problem: Overlapping string argument for strcpy(). (Coverity) Solution: Use STRMOVE() instead of STRCPY(). (Dominique Pelle, closes #3187)
This commit is contained in:
@@ -1483,7 +1483,7 @@ parse_builtin_tcap(char_u *term)
|
|||||||
if (term_7to8bit(t))
|
if (term_7to8bit(t))
|
||||||
{
|
{
|
||||||
*t = term_7to8bit(t);
|
*t = term_7to8bit(t);
|
||||||
STRCPY(t + 1, t + 2);
|
STRMOVE(t + 1, t + 2);
|
||||||
}
|
}
|
||||||
term_strings[p->bt_entry] = s;
|
term_strings[p->bt_entry] = s;
|
||||||
set_term_option_alloced(&term_strings[p->bt_entry]);
|
set_term_option_alloced(&term_strings[p->bt_entry]);
|
||||||
|
@@ -789,6 +789,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
176,
|
||||||
/**/
|
/**/
|
||||||
175,
|
175,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user