COMP: Fix systems that do not have both vsnprintf and snprintf.
This commit is contained in:
parent
c09548b50e
commit
9b97f43342
@ -707,7 +707,11 @@ int mutt_snprintf (va_alist) va_dcl
|
|||||||
VA_SHIFT (str, char *);
|
VA_SHIFT (str, char *);
|
||||||
VA_SHIFT (count, size_t );
|
VA_SHIFT (count, size_t );
|
||||||
VA_SHIFT (fmt, char *);
|
VA_SHIFT (fmt, char *);
|
||||||
|
#ifdef HAVE_VSNPRINTF
|
||||||
(void) vsnprintf(str, count, fmt, ap);
|
(void) vsnprintf(str, count, fmt, ap);
|
||||||
|
#else
|
||||||
|
(void) mutt_vsnprintf(str, count, fmt, ap);
|
||||||
|
#endif
|
||||||
VA_END;
|
VA_END;
|
||||||
return(strlen(str));
|
return(strlen(str));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user