Skip to content

Commit

Permalink
patch 8.1.0176: overlapping string argument for strcpy()
Browse files Browse the repository at this point in the history
Problem:    Overlapping string argument for strcpy(). (Coverity)
Solution:   Use STRMOVE() instead of STRCPY(). (Dominique Pelle, closes #3187)
  • Loading branch information
brammool committed Jul 10, 2018
1 parent bde14d8 commit 18085fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/term.c
Expand Up @@ -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]);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
176,
/**/
175,
/**/
Expand Down

0 comments on commit 18085fa

Please sign in to comment.