diff options
-rw-r--r-- | plugins/common/src/native/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/common/src/native/util.c b/plugins/common/src/native/util.c index 25c4cf7..745a265 100644 --- a/plugins/common/src/native/util.c +++ b/plugins/common/src/native/util.c @@ -47,7 +47,7 @@ static jstring sprintfJavaString(JNIEnv *env, const char *format, va_list ap) { char buffer[BUFFER_SIZE]; jstring str; #ifdef _WIN32 - _vsnprintf(buffer, BUFFER_SIZE, format, ap); + vsnprintf_s(buffer, BUFFER_SIZE, _TRUNCATE, format, ap); #else vsnprintf(buffer, BUFFER_SIZE, format, ap); #endif |