summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 3445d2de8a0..34948781689 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -856,8 +856,8 @@ main (argc, argv)
if (tagfile == NULL)
tagfile = CTAGS ? "tags" : "TAGS";
cwd = etags_getcwd (); /* the current working directory */
- if (cwd[strlen(cwd)-1] != '/')
- strcat (cwd, "/");
+ if (cwd[strlen (cwd) - 1] != '/')
+ cwd = concat (cwd, "/", "");
if (streq (tagfile, "-"))
tagfiledir = cwd;
else