summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2024-05-24 20:51:30 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2024-05-24 21:09:24 +0100
commit2bffbebad7acdf0bf7fe9099724bd5dbd0fac309 (patch)
treee2c4879a75b4a905a404718689f2ae2291961038
parent0843a9b43db29543de8480608c02c9e9a69821a9 (diff)
downloadnetsurf-2bffbebad7acdf0bf7fe9099724bd5dbd0fac309.tar.gz
netsurf-2bffbebad7acdf0bf7fe9099724bd5dbd0fac309.tar.bz2
image handlers: Squash -Wcalloc-transposed-args (gcc-14)
-rw-r--r--content/handlers/image/bmp.c2
-rw-r--r--content/handlers/image/ico.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/image/bmp.c b/content/handlers/image/bmp.c
index 3fec2cc75..7139d86b4 100644
--- a/content/handlers/image/bmp.c
+++ b/content/handlers/image/bmp.c
@@ -77,7 +77,7 @@ static nserror nsbmp_create_bmp_data(nsbmp_content *bmp)
.bitmap_get_buffer = guit->bitmap->get_buffer,
};
- bmp->bmp = calloc(sizeof(struct bmp_image), 1);
+ bmp->bmp = calloc(1, sizeof(struct bmp_image));
if (bmp->bmp == NULL) {
content_broadcast_error(&bmp->base, NSERROR_NOMEM, NULL);
return NSERROR_NOMEM;
diff --git a/content/handlers/image/ico.c b/content/handlers/image/ico.c
index 871da41a9..6bca2a137 100644
--- a/content/handlers/image/ico.c
+++ b/content/handlers/image/ico.c
@@ -74,7 +74,7 @@ static nserror nsico_create_ico_data(nsico_content *c)
.bitmap_get_buffer = guit->bitmap->get_buffer,
};
- c->ico = calloc(sizeof(ico_collection), 1);
+ c->ico = calloc(1, sizeof(ico_collection));
if (c->ico == NULL) {
content_broadcast_error(&c->base, NSERROR_NOMEM, NULL);
return NSERROR_NOMEM;