diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-12-26 13:41:53 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-12-26 13:41:53 +0000 |
commit | 78962f36d22bd936f32bac4ece58586c9abacb9b (patch) | |
tree | 64b74790b4c1d2a8b616565841406d28c4528ea6 | |
parent | d8f32e72878cc01f2bf93fb164756f14db521661 (diff) |
Notes
-rw-r--r-- | bin/sh/memalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c index 0567009877ef..2571a7ea11af 100644 --- a/bin/sh/memalloc.c +++ b/bin/sh/memalloc.c @@ -231,7 +231,7 @@ growstackblock(int min) if (min < stacknleft) min = stacknleft; - if (newlen >= INT_MAX / 2 - ALIGN(sizeof(struct stack_block))) + if (min >= INT_MAX / 2 - ALIGN(sizeof(struct stack_block))) error("Out of space"); min += stacknleft; min += ALIGN(sizeof(struct stack_block)); |