changeset 15366:32ab7b623b9b

(main): Copy cwd when appending slash.
author Richard M. Stallman <rms@gnu.org>
date Sun, 09 Jun 1996 19:12:26 +0000
parents 104a97493dcc
children 179cd20f2f8a
files lib-src/etags.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Sun Jun 09 19:11:53 1996 +0000
+++ b/lib-src/etags.c	Sun Jun 09 19:12:26 1996 +0000
@@ -856,8 +856,8 @@
   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