summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index e292ad0..4a2ffa4 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1093,9 +1093,8 @@ done:
popfile();
tokpushback = 0;
}
- while (stackblocksize() <= savelen)
- growstackblock();
STARTSTACKSTR(out);
+ CHECKSTRSPACE(savelen + 1, out);
INTOFF;
if (str) {
memcpy(out, str, savelen);
OpenPOWER on IntegriCloud