From: Arran Cudbard-Bell Date: Mon, 15 May 2017 17:20:55 +0000 (-0400) Subject: feed fr_strerror_printf fmt through fr_vasprintf so we can use %pV and friends X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84603f7c36546822be8a296db30b60b2303ec296;p=thirdparty%2Ffreeradius-server.git feed fr_strerror_printf fmt through fr_vasprintf so we can use %pV and friends --- diff --git a/src/lib/util/strerror.c b/src/lib/util/strerror.c index f167be2b623..1d6ee2306c6 100644 --- a/src/lib/util/strerror.c +++ b/src/lib/util/strerror.c @@ -136,7 +136,7 @@ void fr_strerror_printf(char const *fmt, ...) } va_start(ap, fmt); - entry->msg = talloc_vasprintf(entry, fmt, ap); + entry->msg = fr_vasprintf(entry, fmt, ap); va_end(ap); if (!entry->msg) goto oom; @@ -151,7 +151,7 @@ void fr_strerror_printf(char const *fmt, ...) if (!entry) goto oom; va_start(ap, fmt); - entry->msg = talloc_vasprintf(entry, fmt, ap); + entry->msg = fr_vasprintf(entry, fmt, ap); va_end(ap); if (!entry->msg) goto oom; @@ -193,7 +193,7 @@ void fr_strerror_printf_push(char const *fmt, ...) } va_start(ap, fmt); - entry->msg = talloc_vasprintf(entry, fmt, ap); + entry->msg = fr_vasprintf(entry, fmt, ap); va_end(ap); if (!entry->msg) goto oom;