diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c index f343f3025..ffe873e4f 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1190,7 +1190,8 @@ zsh_main(int argc, char **argv) break; } while (zsh_name); - fdtable_size = zopenmax(); + /* Not zopenmax() here: it may return a number too big for zcalloc(). */ + fdtable_size = 256; /* This grows as necessary, see utils.c:movefd(). */ fdtable = zcalloc(fdtable_size); createoptiontable(); |