diff options
author | Simon Ser <[email protected]> | 2021-11-07 13:28:23 +0100 |
---|---|---|
committer | Simon Ser <[email protected]> | 2021-11-07 13:28:23 +0100 |
commit | 6fb028b2e0538de6ef1b2c420eb476e1f9a37d25 (patch) | |
tree | c3ce9f543cc37795669439e5a55c70538c675898 | |
parent | 07deb675c09eac2f8ea08302b035a629ea6f2edd (diff) |
scene: fix calloc size mismatch
-rw-r--r-- | wlr_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |