From f328cd509d79f1b468b32bab0fbfd214705534d7 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 20 Mar 2019 21:36:32 -0700 Subject: Fix off-by one in IO port connection text output --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 4b571b0..2a3a03e 100644 --- a/io.c +++ b/io.c @@ -391,7 +391,7 @@ cleanup_sock: } else #endif if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) { - printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num + 1, device_type_names[ports[i].device_type]); + printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num, device_type_names[ports[i].device_type]); } else { printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]); } -- cgit v1.2.3