--- src/lharc.c.orig	Wed Jan 15 18:49:30 1997
+++ src/lharc.c	Mon Mar 30 22:12:37 1998
@@ -346,6 +346,8 @@
 		if ((xfilev = (char **) malloc(sizeof(char *) * xfilec)) == NULL)
 			fatal_error("Virtual memory exhausted\n");
 		while (fgets(inpbuf, sizeof(inpbuf), stdin)) {
+			if ((p = strchr(inpbuf, '\n')))
+				*p = '\0';
 			if (cmd_filec >= xfilec) {
 				xfilec += 256;
 				cmd_filev = (char **) realloc(xfilev,
