0
0
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:
Bram Moolenaar
2018-07-10 17:33:45 +02:00
parent bde14d8e24
commit 18085fae74
2 changed files with 3 additions and 1 deletions

View File

@@ -1483,7 +1483,7 @@ parse_builtin_tcap(char_u *term)
if (term_7to8bit(t))
{
*t = term_7to8bit(t);
STRCPY(t + 1, t + 2);
STRMOVE(t + 1, t + 2);
}
term_strings[p->bt_entry] = s;
set_term_option_alloced(&term_strings[p->bt_entry]);

View File

@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
176,
/**/
175,
/**/