Permalink
Browse files

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)
  • Loading branch information...
brammool committed Jul 10, 2018
1 parent bde14d8 commit 18085fae7482906f8e94ecc7386ecf6a02dc407d
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/term.c
  2. +2 −0 src/version.c
@@ -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]);
@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
176,
/**/
175,
/**/

0 comments on commit 18085fa

Please sign in to comment.