From 797cdd9c8468ed1125ce60d590ae3f1397866af4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 12 Oct 2018 16:58:47 +1100 Subject: Don't avoid our *sprintf replacements. Don't let systems with broken printf(3) avoid our replacements via asprintf(3)/vasprintf(3) calling libc internally. From djm@ --- openbsd-compat/bsd-asprintf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c index 822367154..109277271 100644 --- a/openbsd-compat/bsd-asprintf.c +++ b/openbsd-compat/bsd-asprintf.c @@ -19,6 +19,15 @@ #include "includes.h" +/* + * Don't let systems with broken printf(3) avoid our replacements + * via asprintf(3)/vasprintf(3) calling libc internally. + */ +#if defined(BROKEN_SNPRINTF) +# undef HAVE_VASPRINTF +# undef HAVE_ASPRINTF +#endif + #ifndef HAVE_VASPRINTF #include -- cgit v1.2.3