elaborate on _[v]snprintf()

This commit is contained in:
derselbst 2017-12-31 16:21:01 +01:00
parent a4b7bf0c6f
commit 81ebb229ae

View file

@ -256,6 +256,10 @@ do { strncpy(_dst,_src,_n); \
#define FLUID_FPRINTF fprintf
#if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32)
/* need to make sure we use a C99 compliant implementation of (v)snprintf(),
* i.e. not microsofts non compliant extension _snprintf() as it doesnt
* reliably null-terminates the buffer
*/
#define FLUID_SNPRINTF g_snprintf
#else
#define FLUID_SNPRINTF snprintf