On Tue, Nov 23, 2010 at 04:49:54PM -0700, Eric Blake wrote: > * src/util/util.h (virVasprintf): New declaration. > * src/util/util.c (virVasprintf): New function. > (virAsprintf): Use it. > * src/util/virtaudit.c (virAuditSend): Likewise. > * src/libvirt_private.syms: Export it. > * cfg.mk (sc_prohibit_asprintf): Also prohibit vasprintf. > * .x-sc_prohibit_asprintf: Add exemption. > --- > > v2: new patch; makes virCommandAddArgFormat possible in later patch > > .x-sc_prohibit_asprintf | 4 +++- > cfg.mk | 2 +- > src/libvirt_private.syms | 1 + > src/util/util.c | 21 +++++++++++++++++---- > src/util/util.h | 6 +++++- > src/util/virtaudit.c | 2 +- > 6 files changed, 28 insertions(+), 8 deletions(-) ACK, this is useful in a few other existing places too. Daniel -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list