From: Francesco Potortì Date: Fri, 3 Jun 1994 11:30:57 +0000 (+0000) Subject: * etags.c (etags_getcwd): Delete the trailing newline from cwd. X-Git-Tag: emacs-19.34~8078 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ddebf5f6064f0c5675909dc521e0f9c34fd7b353;p=emacs.git * etags.c (etags_getcwd): Delete the trailing newline from cwd. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 6c480f4b719..ce54badb3a0 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -3169,6 +3169,7 @@ etags_getcwd () } while (buf[strlen (buf) - 1] != '\n'); + buf[strlen (buf) - 1] = '\0'; return buf; } #endif /* not MSDOS */