Message ID | 1302879507-6490-1-git-send-email-asias.hejun@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
* Asias He <asias.hejun@gmail.com> wrote: > Signed-off-by: Asias He <asias.hejun@gmail.com> > --- > tools/kvm/term.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Mind explaining in the changelog what input problem this is about? Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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)
Signed-off-by: Asias He <asias.hejun@gmail.com> --- tools/kvm/term.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)