aboutsummaryrefslogtreecommitdiff
path: root/backend/noop
diff options
context:
space:
mode:
Diffstat (limited to 'backend/noop')
-rw-r--r--backend/noop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/noop/output.c b/backend/noop/output.c
index a4070383..5d9aa90d 100644
--- a/backend/noop/output.c
+++ b/backend/noop/output.c
@@ -68,7 +68,7 @@ struct wlr_output *wlr_noop_add_output(struct wlr_backend *wlr_backend) {
strncpy(wlr_output->make, "noop", sizeof(wlr_output->make));
strncpy(wlr_output->model, "noop", sizeof(wlr_output->model));
- snprintf(wlr_output->name, sizeof(wlr_output->name), "NOOP-%ld",
+ snprintf(wlr_output->name, sizeof(wlr_output->name), "NOOP-%zd",
++backend->last_output_num);
wl_list_insert(&backend->outputs, &output->link);