Skip to content
Snippets Groups Projects
Commit 94665b2f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix up reading of Turbo Pascal arrays.

The last element of these arrays was getting clobbered by the next
field because the array sizes are stored in the first element.

Fixes warning on NetBSD and Raspian.
parent 20aecd3a
No related branches found
No related tags found
No related merge requests found
......@@ -16,13 +16,13 @@ typedef struct {
typedef struct {
char Sign[20];
char a[3];
char Name[16];
char a[4]; // This is a Turbo Pascal array, length is in first element, can hold 3 values
char Name[17]; // Another TP array (16)
unsigned char FontType;
unsigned char Spaces;
short Nul;
unsigned short Chartable[95];
char b[20];
unsigned short Chartable[96]; // Another TP array (95)
char b[21]; // Another TP array (20)
} TheDrawFont;
extern MysticDrawFontHeader Header;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment