COMP: Fix systems that do not have both vsnprintf and snprintf.

This commit is contained in:
Andy Cedilnik 2005-12-30 17:51:18 -05:00
parent c09548b50e
commit 9b97f43342

View File

@ -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));
}