Fix additional calloc-transposed-args warnings

This commit is contained in:
Petar Popovic 2024-09-09 03:09:33 +02:00 committed by Sam Lantinga
parent d2ef15d8e6
commit a57f6c4af3
4 changed files with 6 additions and 6 deletions

View file

@ -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);