From 6fb028b2e0538de6ef1b2c420eb476e1f9a37d25 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 7 Nov 2021 13:28:23 +0100 Subject: scene: fix calloc size mismatch --- wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlr_scene.c b/wlr_scene.c index 940886a..5a2528d 100644 --- a/wlr_scene.c +++ b/wlr_scene.c @@ -798,7 +798,7 @@ static const struct wlr_addon_interface output_addon_impl = { struct wlr_scene_output *wlr_scene_output_create(struct wlr_scene *scene, struct wlr_output *output) { - struct wlr_scene_output *scene_output = calloc(1, sizeof(*output)); + struct wlr_scene_output *scene_output = calloc(1, sizeof(*scene_output)); if (scene_output == NULL) { return NULL; } -- cgit v1.2.3