diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-10 22:19:05 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-10 22:19:05 -0500 |
commit | 5ce883daaafc69f83b01dac5db0647e9662a6e87 (patch) | |
tree | 4ea0e556c3943f59ad21090f39b15f2146937655 /src | |
parent | 0f76e46e79748277a22303dae82dcb91c551863e (diff) | |
download | bfs-5ce883daaafc69f83b01dac5db0647e9662a6e87.tar.xz |
typo: Array bounds are exclusive, not inclusive
Diffstat (limited to 'src')
-rw-r--r-- | src/typo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ #include <string.h> // 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}, |