summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libtiff/port/snprintf.c
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2019-11-05 09:58:05 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2019-11-06 10:39:19 +0100
commitba1fb21bc61a2075c7fd058e7f7ba5caf7d2f400 (patch)
treeb91253586ae2d1d1c6f1c35cfc6df252edf925fb /src/3rdparty/libtiff/port/snprintf.c
parent9fe1f2e918d39031852805f1add23125c061d3c3 (diff)
Update bundled libtiff to version 4.1.05.13
[ChangeLog][Third-Party Code] Bundled libtiff was updated to version 4.1.0 Change-Id: I3e841863c5cf8588bf62b6520f34e64909394998 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/3rdparty/libtiff/port/snprintf.c')
-rw-r--r--src/3rdparty/libtiff/port/snprintf.c4
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);