summaryrefslogtreecommitdiff
path: root/subst.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-07 09:34:07 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-07 09:34:07 -0500
commit626d0694587f5f686f6d4f312889f02fd510d22b (patch)
tree49872f863d82b3563e3f6476e7d21af8e093e52b /subst.c
parentc92a890b214b96f95b459693473599c025fe750c (diff)
downloadbash-626d0694587f5f686f6d4f312889f02fd510d22b.tar.gz
commit bash-20081218 snapshot
Diffstat (limited to 'subst.c')
-rw-r--r--subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subst.c b/subst.c
index 1afd404f..50e584a5 100644
--- a/subst.c
+++ b/subst.c
@@ -4346,7 +4346,7 @@ add_fifo_list (fd)
totfds = getdtablesize ();
if (totfds < 0 || totfds > 256)
totfds = 256;
- if (fd > totfds)
+ if (fd >= totfds)
totfds = fd + 2;
dev_fd_list = (char *)xrealloc (dev_fd_list, totfds);