* etags.c (etags_getcwd): Delete the trailing newline from cwd.
authorFrancesco Potortì <pot@gnu.org>
Fri, 3 Jun 1994 11:30:57 +0000 (11:30 +0000)
committerFrancesco Potortì <pot@gnu.org>
Fri, 3 Jun 1994 11:30:57 +0000 (11:30 +0000)
lib-src/etags.c

index 6c480f4..ce54bad 100644 (file)
@@ -3169,6 +3169,7 @@ etags_getcwd ()
 
     } while (buf[strlen (buf) - 1] != '\n');
 
+  buf[strlen (buf) - 1] = '\0';
   return buf;
 }
 #endif /* not MSDOS */