mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2025-12-06 08:01:59 +01:00
Windows: Fixed warning about unsafe _vsnprintf
This commit is contained in:
parent
99e28a3d9d
commit
55335e976d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue