summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 17:51:18 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 17:51:18 -0500
commit9b97f4334298b859a87b028cad617663986fc86e (patch)
treeab753837ca1e67c75d626651bc5c82848d789a3f /Utilities
parentc09548b50e908e1357dd2001a36584d12344eabc (diff)
downloadcmake-9b97f4334298b859a87b028cad617663986fc86e.tar.gz
COMP: Fix systems that do not have both vsnprintf and snprintf.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/compat/snprintf.c4
1 files changed, 4 insertions, 0 deletions
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));
}