summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-01-04 18:07:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-01-04 18:07:12 +0000
commit0e4d1b70dca71792bf07e734ca3b76068860f321 (patch)
tree2231dc9a2214ec1c01e82cfaf5d15712802e4b46 /bin/ksh
parent54af12c1a5459a4c743b43db8fecb69e70bf65f2 (diff)
Crank max array size in ksh to 10K-1, since 2047 is too restrictive.
Please keep in mind that ksh accesses are not O(1) in any sense. Needed by todd, ok otto, guenther
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/sh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h
index 34ab84b7f79..e4e8807471e 100644
--- a/bin/ksh/sh.h
+++ b/bin/ksh/sh.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh.h,v 1.29 2005/12/11 18:53:51 deraadt Exp $ */
+/* $OpenBSD: sh.h,v 1.30 2010/01/04 18:07:11 deraadt Exp $ */
/*
* Public Domain Bourne/Korn shell
@@ -68,7 +68,7 @@ typedef INT32 Tflag;
#define LINE 2048 /* input line size */
#define PATH 1024 /* pathname size (todo: PATH_MAX/pathconf()) */
-#define ARRAYMAX 2047 /* max array index */
+#define ARRAYMAX (10*1024-1) /* max array index */
EXTERN const char *kshname; /* $0 */
EXTERN pid_t kshpid; /* $$, shell pid */