summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound.c b/sound.c
index 30898cdaf..8a487ca91 100644
--- a/sound.c
+++ b/sound.c
@@ -35,7 +35,7 @@ static void OpenBankFile(const char *filename)
FioOpenFile(SOUND_SLOT, filename);
count = FioReadDword() / 8;
- fe = calloc(sizeof(*fe), count);
+ fe = calloc(count, sizeof(*fe));
if (fe == NULL) {
_file_count = 0;