mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/x11: fix output model strdup call
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3434#note_1401193
Fixes: be86145322
("output: turn make/model/serial into char *")
This commit is contained in:
parent
d0d480b91a
commit
4f5d6e4746
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static void parse_xcb_setup(struct wlr_output *output,
|
||||||
snprintf(model, sizeof(model), "%"PRIu16".%"PRIu16,
|
snprintf(model, sizeof(model), "%"PRIu16".%"PRIu16,
|
||||||
xcb_setup->protocol_major_version,
|
xcb_setup->protocol_major_version,
|
||||||
xcb_setup->protocol_minor_version);
|
xcb_setup->protocol_minor_version);
|
||||||
output->model = strdup(output->model);
|
output->model = strdup(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wlr_x11_output *get_x11_output_from_output(
|
static struct wlr_x11_output *get_x11_output_from_output(
|
||||||
|
|
Loading…
Reference in a new issue