From ddebf5f6064f0c5675909dc521e0f9c34fd7b353 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Fri, 3 Jun 1994 11:30:57 +0000 Subject: [PATCH] * etags.c (etags_getcwd): Delete the trailing newline from cwd. --- lib-src/etags.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5