mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00: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
@ -45,7 +45,7 @@ static void parse_xcb_setup(struct wlr_output *output,
|
||||
snprintf(model, sizeof(model), "%"PRIu16".%"PRIu16,
|
||||
xcb_setup->protocol_major_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(
|
||||
|
Loading…
Reference in New Issue
Block a user