aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-06-15 15:35:23 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-06-15 15:35:23 -0400
commitc40843ebdfe1b9db9f055e18242af194b8a22bb6 (patch)
treea600994479469c2c81d32319895a9c7e4c6f1016
parentba33d2184e4c975fd794ab85ccc66df65971fb77 (diff)
oops used high = len, not high = max in cmd searchHEADmaster
-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){