diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-26 17:48:37 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2022-05-27 13:21:50 +0000 |
commit | 4f5d6e474635ee75d57650e4f1ae0926011c1263 (patch) | |
tree | fbd10e8651a753642a83e615dfc9fe39addef190 | |
parent | d0d480b91acc049db3effaf98d0e43f5de908446 (diff) |
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 *")
-rw-r--r-- | backend/x11/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index 38310374..ba34fef7 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( |