mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-04 22:18:00 +00:00
Windows: Fixed warning about unsafe _vsnprintf
This commit is contained in:
parent
99e28a3d9d
commit
55335e976d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue