summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 22:51:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 22:51:18 (GMT)
commit9b97f4334298b859a87b028cad617663986fc86e (patch)
treeab753837ca1e67c75d626651bc5c82848d789a3f /Utilities/cmtar
parentc09548b50e908e1357dd2001a36584d12344eabc (diff)
downloadCMake-9b97f4334298b859a87b028cad617663986fc86e.zip
CMake-9b97f4334298b859a87b028cad617663986fc86e.tar.gz
CMake-9b97f4334298b859a87b028cad617663986fc86e.tar.bz2
COMP: Fix systems that do not have both vsnprintf and snprintf.
Diffstat (limited to 'Utilities/cmtar')
-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 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));
}