diff options
author | 2012-06-14 10:29:36 +0200 | |
---|---|---|
committer | 2012-06-14 10:29:36 +0200 | |
commit | 0f4660c8787cc41fe67f869984c0ae11d680037e (patch) | |
tree | 6d777f6ba5bd58d391579d0c8213122a2bed3a8a /tools | |
parent | virsh: Don't generate invalid XML in attach-disk command (diff) | |
download | libvirt-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