From: Bram Moolenaar Date: Sat, 14 Aug 2010 11:34:39 +0000 (+0200) Subject: Fix: strcat() on overlapping string. (Dominique Pelle) X-Git-Tag: v7.3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cda000e97f44631a0ed19a5a7e3aed28532e05c9;p=vim Fix: strcat() on overlapping string. (Dominique Pelle) --- diff --git a/src/misc1.c b/src/misc1.c index 996ec7450..c4a6015a0 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();