aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-02-10 00:49:27 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-02-10 00:49:27 +0000
commit551464706c848526646a20b5b4172cda69f0e005 (patch)
tree44d39aead773aca821fcb51bd2ce18372ba99d10 /src/bitmap.c
parenta306cd551640286eb1ad189e87bf7815b5a94de8 (diff)
downloadimv-551464706c848526646a20b5b4172cda69f0e005.tar.gz
Tweak allocation sizeof operator usage
Diffstat (limited to 'src/bitmap.c')
-rw-r--r--src/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitmap.c b/src/bitmap.c
index ffae72c..38ca7a8 100644
--- a/src/bitmap.c
+++ b/src/bitmap.c
@@ -5,7 +5,7 @@
struct imv_bitmap *imv_bitmap_clone(struct imv_bitmap *bmp)
{
- struct imv_bitmap *copy = malloc(sizeof(struct imv_bitmap));
+ struct imv_bitmap *copy = malloc(sizeof *copy);
const size_t num_bytes = 4 * bmp->width * bmp->height;
copy->width = bmp->width;
copy->height = bmp->height;