From 0b5e192f86fa7e1433c1e9413fc1c6590c72c858 Mon Sep 17 00:00:00 2001
From: Masahide NAKAMURA <nakam@linux-ipv6.org>
Date: Wed, 7 Mar 2007 20:33:48 +0900
Subject: [BUGFIX] VT: Fix to show about unknown command.

---
 src/vt.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/vt.c b/src/vt.c
index d65cf05..f5152cc 100644
--- a/src/vt.c
+++ b/src/vt.c
@@ -1158,7 +1158,9 @@ static int vt_cmd_input(const struct vt_handle *vh, char *line, ssize_t len)
 			vt_cmd_dump_candidates(vh, ce, VT_CMD_HELP_LINE_MAX);
 			goto fin;
 		} else {
-			fprintf(vh->vh_stream, "unknown command: \"%s\"\n", p);
+			char buf[VT_PKT_BUFLEN];
+			fprintf(vh->vh_stream, "unknown command: \"%s\"\n",
+				vt_str_space_chop(p, buf, sizeof(buf)));
 			goto fin;
 		}
 	}
-- 
1.5.0.3

