about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2018-04-25 15:31:36 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-04-25 15:31:39 +0000
commit76b5b3a504f5a2d9062a82dec279c3d88d57e8ee (patch)
tree7653002fb7bbcc1a0984d3662d72562f88cdb274 /Src/exec.c
parentc6dbd862d0c5d1d539ad3d58dc1c754a9f166308 (diff)
downloadzsh-76b5b3a504f5a2d9062a82dec279c3d88d57e8ee.tar.gz
zsh-76b5b3a504f5a2d9062a82dec279c3d88d57e8ee.tar.xz
zsh-76b5b3a504f5a2d9062a82dec279c3d88d57e8ee.zip
unposted: Correct process substitution buffer size in the PATH_DEV_FD codepath.
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index ddd9ee0ad..ee55aac8c 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -4882,7 +4882,7 @@ getproc(char *cmd, char **eptr)
 	zerr("process substitution %s cannot be used here", cmd);
 	return NULL;
     }
-    pnam = hcalloc(strlen(PATH_DEV_FD) + 6);
+    pnam = zhalloc(strlen(PATH_DEV_FD) + 1 + DIGBUFSIZE);
     if (!(prog = parsecmd(cmd, eptr)))
 	return NULL;
     if (mpipe(pipes) < 0)