projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c43afcb
)
Fix off-by-one error, noticed by Ralph Corderoy.
author
Ken Hornstein
<kenh@pobox.com>
Fri, 1 Jun 2012 14:25:37 +0000
(10:25 -0400)
committer
Ken Hornstein
<kenh@pobox.com>
Fri, 1 Jun 2012 14:25:37 +0000
(10:25 -0400)
uip/mhbuildsbr.c
patch
|
blob
|
history
diff --git
a/uip/mhbuildsbr.c
b/uip/mhbuildsbr.c
index
93f1647
..
4a2c70c
100644
(file)
--- 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;
}