commit | 18085fae7482906f8e94ecc7386ecf6a02dc407d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jul 10 17:33:45 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jul 10 17:33:45 2018 +0200 |
tree | 5af054d58d74d23815d9c07f5979127f565dea85 | |
parent | bde14d8e24f6b8ca409290733dbf11cb6fee5751 [diff] [blame] |
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)
diff --git a/src/term.c b/src/term.c index 21f9a3c..209a03f 100644 --- a/src/term.c +++ b/src/term.c
@@ -1483,7 +1483,7 @@ 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]);