mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-27 23:19:11 +00:00
Fix additional calloc-transposed-args warnings
This commit is contained in:
parent
d2ef15d8e6
commit
a57f6c4af3
4 changed files with 6 additions and 6 deletions
|
@ -2710,7 +2710,7 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeFileDialog)(
|
|||
|
||||
// Convert fileList to string
|
||||
size_t count = (*env)->GetArrayLength(env, fileList);
|
||||
char **charFileList = SDL_calloc(sizeof(char*), count + 1);
|
||||
char **charFileList = SDL_calloc(count + 1, sizeof(char*));
|
||||
|
||||
if (charFileList == NULL) {
|
||||
mAndroidFileDialogData.callback(mAndroidFileDialogData.userdata, NULL, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue