summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-14 13:34:39 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-14 13:34:39 +0200
commitcda000e97f44631a0ed19a5a7e3aed28532e05c9 (patch)
treea8ff1359f5e6d3168354e4c5992d68a91c63c14b
parent4421d6af223c92f29673154112939658126edca1 (diff)
Fix: strcat() on overlapping string. (Dominique Pelle)
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 996ec7450a..c4a6015a0d 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -9555,7 +9555,7 @@ uniquefy_paths(gap, pattern)
{
STRCPY(path, ".");
add_pathsep(path);
- STRCAT(path, short_name);
+ STRMOVE(path + STRLEN(path), short_name);
}
}
ui_breakcheck();