From 9b97f4334298b859a87b028cad617663986fc86e Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 30 Dec 2005 17:51:18 -0500 Subject: COMP: Fix systems that do not have both vsnprintf and snprintf. --- Utilities/cmtar/compat/snprintf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utilities/cmtar/compat/snprintf.c b/Utilities/cmtar/compat/snprintf.c index fbdf7c5..94e420a 100644 --- a/Utilities/cmtar/compat/snprintf.c +++ b/Utilities/cmtar/compat/snprintf.c @@ -707,7 +707,11 @@ int mutt_snprintf (va_alist) va_dcl VA_SHIFT (str, char *); VA_SHIFT (count, size_t ); VA_SHIFT (fmt, char *); +#ifdef HAVE_VSNPRINTF (void) vsnprintf(str, count, fmt, ap); +#else + (void) mutt_vsnprintf(str, count, fmt, ap); +#endif VA_END; return(strlen(str)); } -- cgit v0.12