diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-03-24 22:16:44 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-03-24 22:16:44 +0000 |
commit | 6bd1f0b658952974d9599a219d2b44f43dc05cee (patch) | |
tree | 9e9f2596aede1467a3ea766ec6eca635b89dbf16 /src/lib | |
parent | 6d342596128a4328d9ed1cd82184aabde68bd107 (diff) |
osd_* -> global_* compilation fixes (nw)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/formats/apridisk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/formats/apridisk.c b/src/lib/formats/apridisk.c index 79022f7829c..985177cc916 100644 --- a/src/lib/formats/apridisk.c +++ b/src/lib/formats/apridisk.c @@ -6,6 +6,7 @@ #include "apridisk.h" #include "imageutl.h" +#include "corealloc.h" /*************************************************************************** CONSTANTS @@ -176,7 +177,7 @@ FLOPPY_CONSTRUCT( apridisk_construct ) } else if (compression == APR_COMPRESSED) { - UINT8 *buffer = (UINT8 *)global_alloc(data_size * sizeof(UINT8)); + UINT8 *buffer = (UINT8 *)global_alloc_array(UINT8, data_size); UINT16 length; UINT8 value; @@ -185,7 +186,7 @@ FLOPPY_CONSTRUCT( apridisk_construct ) length = pick_integer_le(buffer, 0, 2); value = pick_integer_le(buffer, 2, 1); - global_free(buffer); + global_free_array(buffer); /* not sure if this is possible */ if (length != 512) { |