From c40843ebdfe1b9db9f055e18242af194b8a22bb6 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Mon, 15 Jun 2020 15:35:23 -0400
Subject: oops used high = len, not high = max in cmd search
---
badroff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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){
--
cgit