(svn r4674) - Codechange: use correct parameter order for allocating sound file memory
authorpeter1138
Tue, 02 May 2006 13:35:23 +0000
changeset 3716 ecf0adf3b752
parent 3715 dd9807bf5927
child 3717 360ddbd9fe85
(svn r4674) - Codechange: use correct parameter order for allocating sound file memory
sound.c
--- a/sound.c	Tue May 02 09:31:59 2006 +0000
+++ b/sound.c	Tue May 02 13:35:23 2006 +0000
@@ -35,7 +35,7 @@
 
 	FioOpenFile(SOUND_SLOT, filename);
 	count = FioReadDword() / 8;
-	fe = calloc(sizeof(*fe), count);
+	fe = calloc(count, sizeof(*fe));
 
 	if (fe == NULL) {
 		_file_count = 0;