Skip to content
Snippets Groups Projects
Commit 8d351e4c 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 0b2a111c
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -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