aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--badroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/badroff.c b/badroff.c
index 25d89d2..f685d91 100644
--- a/badroff.c
+++ b/badroff.c
@@ -289,7 +289,7 @@ static char* (*call[])(char* txt) =
static char* cmd(void){
char* dat = norm();
- int low = 0; int high = sizeof(cmds)/sizeof(*cmds); //len
+ int low = 0; int high = sizeof(cmds)/sizeof(*cmds) - 1; //max
char* proc = NULL;
bool found = false;
while (high >= low){