diff options
author | 2016-02-05 09:33:26 +0100 | |
---|---|---|
committer | 2016-02-05 19:09:51 +0530 | |
commit | 15d61692da651fc79b3fc40050b986c5a73055c0 (patch) | |
tree | 1ed2c16f95bcc6d5268afde9ca2a8321930b47a6 /qapi/qapi-dealloc-visitor.c | |
parent | static checker: e1000-82540em got aliased to e1000 (diff) | |
download | qemu-15d61692da651fc79b3fc40050b986c5a73055c0.tar.xz qemu-15d61692da651fc79b3fc40050b986c5a73055c0.zip |
migration: fix bad string passed to error_report()
state->name does not contain a terminating '\0' and you may get:
Machine type received is 'pseries-2.3y�?' and local is 'pseries-2.4'
load of migration failed: Invalid argument
Let's add a precision modifier to fix this.
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Message-Id: <20160205083201.2201.76109.stgit@bahia.huguette.org>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'qapi/qapi-dealloc-visitor.c')
0 files changed, 0 insertions, 0 deletions