From f1316d8b014db0ea0b3e3d8b6e148c6b6e2be5cf Mon Sep 17 00:00:00 2001 From: Ishizaki Kou Date: Mon, 17 Mar 2008 21:05:18 +1100 Subject: [PATCH] --- yaml --- r: 91544 b: refs/heads/master c: 55045d47d7a8c4c61bc0ca6f2fac5087dd598bc3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/char/hvc_beat.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index cdc86688f300..856199f1d9c4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2fe37a6ec933ca7332a8ca8d29e87705116afd3a +refs/heads/master: 55045d47d7a8c4c61bc0ca6f2fac5087dd598bc3 diff --git a/trunk/drivers/char/hvc_beat.c b/trunk/drivers/char/hvc_beat.c index e74bb949c289..91cdb35a9204 100644 --- a/trunk/drivers/char/hvc_beat.c +++ b/trunk/drivers/char/hvc_beat.c @@ -78,8 +78,8 @@ static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt) for (rest = cnt; rest > 0; rest -= nlen) { nlen = (rest > 16) ? 16 : rest; memcpy(kb, buf, nlen); - beat_put_term_char(vtermno, rest, kb[0], kb[1]); - rest -= nlen; + beat_put_term_char(vtermno, nlen, kb[0], kb[1]); + buf += nlen; } return cnt; }