aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-07-10 00:29:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-07-10 00:30:27 +0200
commitbac9fce4e0619d39bb7535610b60e7f4104ed026 (patch)
tree791a8b298c5f1b39e7e71e79a2ce2bb7050e7f28
parent2e9ea9b4e2a1096e6d6121ced76b73e5b59348d1 (diff)
downloadfiv-bac9fce4e0619d39bb7535610b60e7f4104ed026.tar.gz
fiv-bac9fce4e0619d39bb7535610b60e7f4104ed026.tar.xz
fiv-bac9fce4e0619d39bb7535610b60e7f4104ed026.zip
Fix argument order in g_malloc0_n() usagesorigin/master
-rw-r--r--fiv-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 24db289..2d32990 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -976,7 +976,7 @@ static uint32_t *
parse_mpf_index_entries(const struct tiffer *T, struct tiffer_entry *entry)
{
uint32_t count = entry->remaining_count / 16;
- uint32_t *offsets = g_malloc0_n(sizeof *offsets, count + 1), *out = offsets;
+ uint32_t *offsets = g_malloc0_n(count + 1, sizeof *offsets), *out = offsets;
for (uint32_t i = 0; i < count; i++) {
// 5.2.3.3.3. Individual Image Data Offset
uint32_t offset = parse_mpf_mpentry(entry->p + i * 16, T);