]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io-cmds.c
qemu-io: fix cvtnum lval types
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Nov 2015 23:53:02 +0000 (18:53 -0500)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:39:59 +0000 (16:39 +0100)
commit9b0beaf3de1396a23d5c287283e6f36c4b5d4385
tree98c128d9e6d824c3bb84b74fc8ca010af545e5fa
parent3fa123d05964b07f9d4d972f131cce847091926d
qemu-io: fix cvtnum lval types

cvtnum() returns int64_t: we should not be storing this
result inside of an int.

In a few cases, we need an extra sprinkling of error handling
where we expect to pass this number on towards a function that
expects something smaller than int64_t.

Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io-cmds.c