diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-30 22:51:18 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-30 22:51:18 (GMT) |
commit | 9b97f4334298b859a87b028cad617663986fc86e (patch) | |
tree | ab753837ca1e67c75d626651bc5c82848d789a3f /Utilities/cmtar | |
parent | c09548b50e908e1357dd2001a36584d12344eabc (diff) | |
download | CMake-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.c | 4 |
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)); } |