diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-02-06 21:27:21 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-06 16:35:19 -0600 |
commit | 094c8c2c67c486bcbc03c5e6327edc6ad3e5e29a (patch) | |
tree | 05866ba3fec3691f3931e920aab570d7387d8ec2 /qemu-char.c | |
parent | 44f3bcd2c7991cc9d096e51e38864135543ea1ce (diff) |
qemu-char: Fix chardev "memory" not to drop IAC characters
Undocumented misfeature, get rid of it while we can.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/qemu-char.c b/qemu-char.c index b0e4b41bc..2f59a6142 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; |