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