From 89cab6fa393f7d083f878d66957af176f51c2322 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 18 Jan 2025 18:56:56 +0100 Subject: eizoctl: display non-first numbers correctly Humans count from 1, not from 0. --- eizoctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eizoctl.c b/eizoctl.c index 4207f99..3081b40 100644 --- a/eizoctl.c +++ b/eizoctl.c @@ -817,7 +817,7 @@ eizo_port_to_name(uint16_t port) else if (!number) snprintf(buffer, sizeof buffer, "%s", stem); else - snprintf(buffer, sizeof buffer, "%s %d", stem, number); + snprintf(buffer, sizeof buffer, "%s %d", stem, (number + 1)); return buffer; } -- cgit v1.2.3-70-g09d2