Skip to content

Commit 18085fa

Browse files
committed
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)
1 parent bde14d8 commit 18085fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/term.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ parse_builtin_tcap(char_u *term)
14831483
if (term_7to8bit(t))
14841484
{
14851485
*t = term_7to8bit(t);
1486-
STRCPY(t + 1, t + 2);
1486+
STRMOVE(t + 1, t + 2);
14871487
}
14881488
term_strings[p->bt_entry] = s;
14891489
set_term_option_alloced(&term_strings[p->bt_entry]);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
176,
792794
/**/
793795
175,
794796
/**/

0 commit comments

Comments
 (0)