From 9b97f4334298b859a87b028cad617663986fc86e Mon Sep 17 00:00:00 2001
From: Andy Cedilnik <andy.cedilnik@kitware.com>
Date: Fri, 30 Dec 2005 17:51:18 -0500
Subject: [PATCH] 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 fbdf7c52cf..94e420ae79 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));
 }
-- 
GitLab