summaryrefslogtreecommitdiff
path: root/amiga/os3support.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/os3support.c')
-rw-r--r--amiga/os3support.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/os3support.c b/amiga/os3support.c
index f4d857a78..7235d8c56 100644
--- a/amiga/os3support.c
+++ b/amiga/os3support.c
@@ -33,6 +33,7 @@
#include <proto/dos.h>
#include <proto/utility.h>
+#include <diskfont/diskfont.h>
#include <diskfont/diskfonttag.h>
#include <intuition/gadgetclass.h>
@@ -68,7 +69,7 @@ struct OutlineFont *OpenOutlineFont(STRPTR fileName, struct List *list, ULONG fl
return NULL;
}
- if(Read(fh, &magic, sizeof(struct FontContentsHeader)) != sizeof(struct FontContentsHeader)) {
+ if(Read(fh, &fch, sizeof(struct FontContentsHeader)) != sizeof(struct FontContentsHeader)) {
LOG("Unable to read FONT %s", fontpath);
FreeVec(fontpath);
Close(fh);