From d6be24525b37516dbbe6e2333a78c12c096b1e6c Mon Sep 17 00:00:00 2001 From: zico Date: Tue, 27 Jul 2010 20:16:39 +0000 Subject: [PATCH] Fixing bug in MIDI header - format was written in size of int instead of short --- misc/hmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/hmp.c b/misc/hmp.c index 689d4412..48e9752c 100644 --- a/misc/hmp.c +++ b/misc/hmp.c @@ -223,7 +223,7 @@ void hmp2mid(char *hmp_name, char *mid_name) mi = MIDIINT(6); PHYSFS_write(mid, &mi, sizeof(mi), 1); ms = MIDISHORT(1); - PHYSFS_write(mid, &ms, sizeof(mi), 1); + PHYSFS_write(mid, &ms, sizeof(ms), 1); ms = MIDISHORT(hmp->num_trks); PHYSFS_write(mid, &ms, sizeof(ms), 1); ms = MIDISHORT((short) 0xC0); -- 2.39.2