summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'function.c')
-rw-r--r--function.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/function.c b/function.c
index 8b6895c..012d2e3 100644
--- a/function.c
+++ b/function.c
@@ -1450,6 +1450,7 @@ func_shell (o, argv, funcname)
i += cc;
}
while (cc > 0 || EINTR_SET);
+ buffer[i] = '\0';
/* Close the read side of the pipe. */
#ifdef __MSDOS__