image handlers: Squash -Wcalloc-transposed-args (gcc-14)

This commit is contained in:
Michael Drake 2024-05-24 20:51:30 +01:00
parent 0843a9b43d
commit 2bffbebad7
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;