From 4f5d6e474635ee75d57650e4f1ae0926011c1263 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 26 May 2022 17:48:37 +0200 Subject: [PATCH] backend/x11: fix output model strdup call References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3434#note_1401193 Fixes: be86145322e6 ("output: turn make/model/serial into char *") --- backend/x11/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/x11/output.c b/backend/x11/output.c index 383103748..ba34fef77 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -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(