aboutsummaryrefslogtreecommitdiff
path: root/backend/headless/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/headless/output.c')
-rw-r--r--backend/headless/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c
index d200aa58..b3b41d46 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -128,7 +128,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend,
output_set_custom_mode(wlr_output, width, height, 0);
strncpy(wlr_output->make, "headless", sizeof(wlr_output->make));
strncpy(wlr_output->model, "headless", sizeof(wlr_output->model));
- snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%ld",
+ snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%zd",
++backend->last_output_num);
if (!wlr_egl_make_current(&output->backend->egl, output->egl_surface,