diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/m_controls.c | 2 | ||||
-rw-r--r-- | src/midifile.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/m_controls.c b/src/m_controls.c index 8b8af160..a9beed46 100644 --- a/src/m_controls.c +++ b/src/m_controls.c @@ -355,7 +355,7 @@ void M_BindMenuControls(void) void M_BindChatControls(unsigned int num_players) { - char name[20]; + char name[32]; // haleyjd: 20 not large enough - Thank you, come again! int i; M_BindVariable("key_multi_msg", &key_multi_msg); diff --git a/src/midifile.c b/src/midifile.c index 1990dcdc..e9af051c 100644 --- a/src/midifile.c +++ b/src/midifile.c @@ -36,6 +36,11 @@ #define TRACK_CHUNK_ID "MTrk" #define MAX_BUFFER_SIZE 0x10000 +// haleyjd 09/09/10: packing required +#ifdef _MSC_VER +#pragma pack(push, 1) +#endif + typedef struct { byte chunk_id[4]; @@ -50,6 +55,11 @@ typedef struct unsigned short time_division; } PACKEDATTR midi_header_t; +// haleyjd 09/09/10: packing off. +#ifdef _MSC_VER +#pragma pack(pop) +#endif + typedef struct { // Length in bytes: |