changeset 7775:4c63040423a8

* etags.c (etags_getcwd): Delete the trailing newline from cwd.
author Francesco Potortì <pot@gnu.org>
date Fri, 03 Jun 1994 11:30:57 +0000
parents f9cde3320987
children f91e2cf8770b
files lib-src/etags.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Fri Jun 03 04:50:17 1994 +0000
+++ b/lib-src/etags.c	Fri Jun 03 11:30:57 1994 +0000
@@ -3169,6 +3169,7 @@
 
     } while (buf[strlen (buf) - 1] != '\n');
 
+  buf[strlen (buf) - 1] = '\0';
   return buf;
 }
 #endif /* not MSDOS */