From 3af05444215e3aa1ec0cd4b6ee0d7f00eca6300a Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 17 Oct 2017 21:40:35 +0200 Subject: [PATCH] hidpp10: fix last entry in dpi_list_from_range --- src/driver-hidpp10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 5c300ceb..2f3cfa45 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -448,7 +448,7 @@ hidpp10drv_read_profile(struct ratbag_profile *profile) * same steps that we support */ ratbag_resolution_set_dpi_list_from_range(res, min, max); } else { - for (int i = 0; i < hidpp10->dpi_count - 1; i++) + for (int i = 0; i < hidpp10->dpi_count; i++) dpis[i] = hidpp10->dpi_table[i].dpi; ratbag_resolution_set_dpi_list(res, dpis, hidpp10->dpi_count);