Fix off-by-one error, noticed by Ralph Corderoy.
[mmh] / uip / mhbuildsbr.c
index 93f1647..4a2c70c 100644 (file)
@@ -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;
     }