# HG changeset patch # User chainsaw # Date 1161808896 25200 # Node ID 7ce296248b5c0dfebae6512972f7e0f89d9eefbc # Parent b8fd91c53d9b4869ca7796970a43f1b26a5b00a6 [svn] 669 is 2-byte, not 4-byte. Thanks to a report from Kevin Korb on #audacious. diff -r b8fd91c53d9b -r 7ce296248b5c ChangeLog --- a/ChangeLog Wed Oct 25 00:28:43 2006 -0700 +++ b/ChangeLog Wed Oct 25 13:41:36 2006 -0700 @@ -1,3 +1,11 @@ +2006-10-25 07:28:43 +0000 William Pitcock + revision [238] + - typo :< + + trunk/mk/rules.mk.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + + 2006-10-25 07:02:27 +0000 William Pitcock revision [236] - link against needed libs diff -r b8fd91c53d9b -r 7ce296248b5c src/modplug/modplugbmp.cxx --- a/src/modplug/modplugbmp.cxx Wed Oct 25 00:28:43 2006 -0700 +++ b/src/modplug/modplugbmp.cxx Wed Oct 25 13:41:36 2006 -0700 @@ -111,7 +111,7 @@ vfs_fclose(file); return 1; } - if (!memcmp(magic, M669_MAGIC, 4)) { + if (!memcmp(magic, M669_MAGIC, 2)) { vfs_fclose(file); return 1; } diff -r b8fd91c53d9b -r 7ce296248b5c src/modplug/modplugbmp.h --- a/src/modplug/modplugbmp.h Wed Oct 25 00:28:43 2006 -0700 +++ b/src/modplug/modplugbmp.h Wed Oct 25 13:41:36 2006 -0700 @@ -37,7 +37,7 @@ /* These nicer formats have the magic bytes at the front of the file where they belong */ #define UMX_MAGIC (unsigned char [4]) { 0xC1, 0x83, 0x2A, 0x9E } #define XM_MAGIC (unsigned char [4]) { 0x45, 0x78, 0x74, 0x65 } /* Exte(nded Module) */ -#define M669_MAGIC (unsigned char [4]) { 0x69, 0x66, 0x20, 0x20 } +#define M669_MAGIC (unsigned char [4]) { 0x69, 0x66, 0x20, 0x20 } /* Last two bytes are bogus, and not checked */ #define IT_MAGIC (unsigned char [4]) { 0x49, 0x4D, 0x50, 0x4D } /* IMPM */ #define MTM_MAGIC (unsigned char [4]) { 0x4D, 0x54, 0x4D, 0x10 } #define PSM_MAGIC (unsigned char [4]) { 0x50, 0x53, 0x4D, 0x20 }