mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
virBufferStrcat: do not skip va_end
* src/util/buf.c (virBufferStrcat): Do not skip va_end due to an early return.
This commit is contained in:
parent
12ed08bc3a
commit
3f8de891c5
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* buf.c: buffers for libvirt
|
||||
*
|
||||
* Copyright (C) 2005-2008 Red Hat, Inc.
|
||||
* Copyright (C) 2005-2008, 2010 Red Hat, Inc.
|
||||
*
|
||||
* See COPYING.LIB for the License of this software
|
||||
*
|
||||
@ -424,7 +424,7 @@ virBufferStrcat(virBufferPtr buf, ...)
|
||||
|
||||
if (needSize > buf->size) {
|
||||
if (virBufferGrow(buf, needSize - buf->use) < 0)
|
||||
return;
|
||||
break;
|
||||
}
|
||||
memcpy(&buf->content[buf->use], str, len);
|
||||
buf->use += len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user