From ce4e75e99c095abfcfd799df10a9b7f349c21c4a Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Fri, 1 Jun 2012 10:25:37 -0400 Subject: [PATCH] Fix off-by-one error, noticed by Ralph Corderoy. --- uip/mhbuildsbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 93f1647..4a2c70c 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -97,7 +97,7 @@ static int do_direct(void) static void directive_onoff(int onoff) { - if (directives_index >= sizeof(directives_stack)) { + if (directives_index >= sizeof(directives_stack) - 1) { fprintf(stderr, "mhbuild: #on/off overflow, continuing\n"); return; } -- 1.7.10.4