mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
COMP: Fix systems that do not have both vsnprintf and snprintf.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user