Fix off-by-one bug limiting VNC passwords to 7 chars (Chris Webb)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 10 Dec 2008 15:12:57 +0000 (15:12 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 10 Dec 2008 15:12:57 +0000 (15:12 +0000)
commitdd6dd4202f3bc4f6e609ad92e2c9b1816c7f15d3
treea875320a25dd9a6f11d509335fc7009cebd9afdf
parent37090cc888e6bb70a7a879c5d82cd9024c4f6932
Fix off-by-one bug limiting VNC passwords to 7 chars (Chris Webb)

monitor_readline expects buf_size to include the terminating \0, but
do_change_vnc in monitor.c calls it as though it doesn't. The other site
where monitor_readline reads a password (in vl.c) passes the buffer
length
correctly.

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5966 c046a42c-6fe2-441c-8c8c-71466251a162
monitor.c