From cda000e97f44631a0ed19a5a7e3aed28532e05c9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 14 Aug 2010 13:34:39 +0200 Subject: [PATCH] Fix: strcat() on overlapping string. (Dominique Pelle) --- src/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1