diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-10 17:33:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-10 17:33:45 +0200 |
commit | 18085fae7482906f8e94ecc7386ecf6a02dc407d (patch) | |
tree | 5af054d58d74d23815d9c07f5979127f565dea85 /src/term.c | |
parent | bde14d8e24f6b8ca409290733dbf11cb6fee5751 (diff) | |
download | vim-git-18085fae7482906f8e94ecc7386ecf6a02dc407d.tar.gz |
patch 8.1.0176: overlapping string argument for strcpy()v8.1.0176
Problem: Overlapping string argument for strcpy(). (Coverity)
Solution: Use STRMOVE() instead of STRCPY(). (Dominique Pelle, closes #3187)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 21f9a3cfa..209a03f5c 100644 --- a/src/term.c +++ b/src/term.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]); |