aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2012-06-14 10:29:36 +0200
committerPeter Krempa <pkrempa@redhat.com>2012-06-14 10:29:36 +0200
commit0f4660c8787cc41fe67f869984c0ae11d680037e (patch)
tree6d777f6ba5bd58d391579d0c8213122a2bed3a8a /tools
parentvirsh: Don't generate invalid XML in attach-disk command (diff)
downloadlibvirt-0f4660c8787cc41fe67f869984c0ae11d680037e.tar.gz
libvirt-0f4660c8787cc41fe67f869984c0ae11d680037e.tar.bz2
libvirt-0f4660c8787cc41fe67f869984c0ae11d680037e.zip
qemu: Fix off-by-one error while unescaping monitor strings
While unescaping the commands the commands passed through to the monitor function qemuMonitorUnescapeArg() initialized lenght of the input string to strlen()+1 which is fine for alloc but not for iteration of the string. This patch fixes the off-by-one error and drops the pointless check for a single trailing slash that is automaticaly handled by the default branch of switch.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions