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:
Simon Ser 2022-05-26 17:48:37 +02:00 committed by Kenny Levinsen
parent d0d480b91a
commit 4f5d6e4746

View file

@ -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(