From 5ce883daaafc69f83b01dac5db0647e9662a6e87 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 10 Nov 2022 22:19:05 -0500 Subject: typo: Array bounds are exclusive, not inclusive --- src/typo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/typo.c b/src/typo.c index 4012730..c16cab4 100644 --- a/src/typo.c +++ b/src/typo.c @@ -20,7 +20,7 @@ #include // Assume QWERTY layout for now -static const int key_coords[UCHAR_MAX][3] = { +static const int key_coords[UCHAR_MAX + 1][3] = { ['`'] = { 0, 0, 0}, ['~'] = { 0, 0, 1}, ['1'] = { 3, 0, 0}, -- cgit v1.2.3