commit | cda000e97f44631a0ed19a5a7e3aed28532e05c9 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Aug 14 13:34:39 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Aug 14 13:34:39 2010 +0200 |
tree | a8ff1359f5e6d3168354e4c5992d68a91c63c14b | |
parent | 4421d6af223c92f29673154112939658126edca1 [diff] [blame] |
Fix: strcat() on overlapping string. (Dominique Pelle)
diff --git a/src/misc1.c b/src/misc1.c index 996ec74..c4a6015 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -9555,7 +9555,7 @@ { STRCPY(path, "."); add_pathsep(path); - STRCAT(path, short_name); + STRMOVE(path + STRLEN(path), short_name); } } ui_breakcheck();