changeset 2562:19f4f5ee3d1f vim73

Fix: strcat() on overlapping string. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Sat, 14 Aug 2010 13:34:39 +0200
parents 1851bce339fc
children 5769dc787ec5
files src/misc1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();