summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-11-09 05:09:18 +1100
committer Vas Crabb <vas@vastheman.com>2020-11-09 05:09:18 +1100
commit39a42d517d26360dbf4e453657718231b0f13da9 (patch)
treef9f8443c074a52db70c5953a4a4f3ed0e7c88752 /src/lib
parentabd5378a1638a5f78e5678b2ffa0802b4aded0e9 (diff)
Got rid of a couple of easy auto_alloc_array
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/tzx_cas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp
index 1804e89b1b6..6452faefda8 100644
--- a/src/lib/formats/tzx_cas.cpp
+++ b/src/lib/formats/tzx_cas.cpp
@@ -88,7 +88,7 @@ static void tzx_cas_get_blocks( const uint8_t *casdata, int caslen )
void *old_blocks = blocks;
int old_max_block_count = max_block_count;
max_block_count = max_block_count + BLOCK_COUNT_INCREMENTS;
- blocks = (uint8_t**)malloc(max_block_count * sizeof(uint8_t*)); // SHOULD NOT BE USING auto_alloc_array()
+ blocks = (uint8_t**)malloc(max_block_count * sizeof(uint8_t*));
memset(blocks, 0, max_block_count);
memcpy(blocks, old_blocks, old_max_block_count * sizeof(uint8_t*));
free(old_blocks);