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 *")
Simon Ser 3 years ago committed by Kenny Levinsen
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…
Cancel
Save