From 76b5b3a504f5a2d9062a82dec279c3d88d57e8ee Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 25 Apr 2018 15:31:36 +0000 Subject: unposted: Correct process substitution buffer size in the PATH_DEV_FD codepath. --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/exec.c') 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) -- cgit 1.4.1