From patchwork Wed Feb 6 20:27:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [for-1.4, v2, 08/13] qemu-char: Fix chardev "memory" not to drop IAC characters Date: Wed, 06 Feb 2013 10:27:21 -0000 From: Markus Armbruster X-Patchwork-Id: 218754 Message-Id: <1360182446-1502-9-git-send-email-armbru@redhat.com> To: qemu-devel@nongnu.org Cc: lilei@linux.vnet.ibm.com, lcapitulino@redhat.com Undocumented misfeature, get rid of it while we can. Signed-off-by: Markus Armbruster --- qemu-char.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b0e4b41..2f59a61 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2678,11 +2678,6 @@ static int cirmem_chr_write(CharDriverState *chr, const uint8_t *buf, int len) } for (i = 0; i < len; i++ ) { - /* Avoid writing the IAC information to the queue. */ - if ((unsigned char)buf[i] == IAC) { - continue; - } - d->cbuf[d->prod++ % d->size] = buf[i]; if ((d->prod - d->cons) > d->size) { d->cons = d->prod - d->size;