Signed-off-by: Asias He <[email protected]>
---
 tools/kvm/term.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/kvm/term.c b/tools/kvm/term.c
index 2245c8d..2bd038d 100644
--- a/tools/kvm/term.c
+++ b/tools/kvm/term.c
@@ -71,9 +71,9 @@ int term_getc_iov(int who, struct iovec *iov, int iovcnt)
                return 0;
 
        *((int *)iov[0].iov_base)       = c;
-       iov[0].iov_len                  = sizeof(int);
+       iov[0].iov_len                  = sizeof(char);
 
-       return sizeof(int);
+       return sizeof(char);
 }
 
 int term_putc_iov(int who, struct iovec *iov, int iovcnt)
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to