Fix stdlib usage

This commit is contained in:
Anonymous Maarten 2024-09-25 21:56:16 +02:00 committed by Anonymous Maarten
parent 80da805688
commit 76f28ea120
4 changed files with 9 additions and 9 deletions

View file

@ -1526,7 +1526,7 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeSetenv)(
// This is only called at startup, to initialize the environment
// Note that we call setenv() directly to avoid affecting SDL environments
setenv(utfname, utfvalue, 1);
setenv(utfname, utfvalue, 1); // This should NOT be SDL_setenv()
(*env)->ReleaseStringUTFChars(env, name, utfname);
(*env)->ReleaseStringUTFChars(env, value, utfvalue);