]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virBufferTrim: do not accept len
authorJán Tomko <jtomko@redhat.com>
Sun, 2 Feb 2020 19:26:38 +0000 (20:26 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Feb 2020 18:44:38 +0000 (19:44 +0100)
commit0a125c714468327de3042d11194565bb356185d0
tree0ff58b9ef97cb7c3ba7bc937e16511ff7847a2c9
parent4838e8b3fca7aa7a797be8c16940e88664975a94
virBufferTrim: do not accept len

Always trim the full specified suffix.

All of the callers outside of tests were passing either
strlen or the actual length of the string.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
15 files changed:
src/conf/domain_addr.c
src/conf/domain_conf.c
src/cpu/cpu_x86.c
src/qemu/qemu_command.c
src/rpc/virnetsshsession.c
src/storage/storage_util.c
src/util/virbuffer.c
src/util/virbuffer.h
src/util/virqemu.c
src/util/virresctrl.c
tests/qemublocktest.c
tests/qemumonitorjsontest.c
tests/virbuftest.c
tools/virsh-domain.c
tools/vsh.c