From eb5f23d6d028281687d7fa63e82624dcf0e7a734 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 7 Nov 2021 13:28:23 +0100 Subject: [PATCH] scene: fix calloc size mismatch --- types/scene/wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 940886a6..5a2528d1 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/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; }