Fix additional calloc-transposed-args warnings
This commit is contained in:
committed by
Sam Lantinga
parent
d2ef15d8e6
commit
a57f6c4af3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user