diff options
Diffstat (limited to 'src/3rdparty/libtiff/port/snprintf.c')
-rw-r--r-- | src/3rdparty/libtiff/port/snprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/3rdparty/libtiff/port/snprintf.c b/src/3rdparty/libtiff/port/snprintf.c index 1c4ac08..3542ab7 100644 --- a/src/3rdparty/libtiff/port/snprintf.c +++ b/src/3rdparty/libtiff/port/snprintf.c @@ -16,7 +16,11 @@ int _TIFF_vsnprintf_f(char* str, size_t size, const char* format, va_list ap) int count = -1; if (size != 0) +#if _MSC_VER <= 1310 + count = _vsnprintf(str, size, format, ap); +#else count = _vsnprintf_s(str, size, _TRUNCATE, format, ap); +#endif if (count == -1) count = _vscprintf(format, ap); |