summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-06-07 17:27:39 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2017-06-07 17:27:39 (GMT)
commit103f99c2103f9c0a74b9da2d1d8958acd0ccb4cb (patch)
tree4f8addb282f7209fe9c1321a693284b6b05cb8e2
parentf855774e1a479941f3cdea919a3e9c4de14dbe6a (diff)
downloadnetsurf-103f99c2103f9c0a74b9da2d1d8958acd0ccb4cb.tar.gz
netsurf-103f99c2103f9c0a74b9da2d1d8958acd0ccb4cb.tar.bz2
Correct alignment (thx Jaime Cagigal)
-rw-r--r--frontends/amiga/os3support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/amiga/os3support.c b/frontends/amiga/os3support.c
index c082602..5c1e40d 100644
--- a/frontends/amiga/os3support.c
+++ b/frontends/amiga/os3support.c
@@ -332,7 +332,7 @@ void CloseOutlineFont(struct OutlineFont *of, struct List *list)
int64 GetFileSize(BPTR fh)
{
int32 size = 0;
- struct FileInfoBlock *fib = malloc(sizeof(struct FileInfoBlock));
+ struct FileInfoBlock *fib = AllocDosObject(DOS_FIB, NULL);
if(fib == NULL) return 0;
ExamineFH(fh, fib);