summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2004-05-10 16:28:48 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2004-05-10 16:28:48 +0000
commit5b56f599e03f5fa7dffdc519a7acfe191c11e124 (patch)
treebb761af8e25222d2fc0e2fc5d0ddb45bd9514797 /bin
parentaaf0407dce8256a3e5a0f3a9013030f63c939edb (diff)
double the command line buffer size (1024 -> 2048); ok millert deraadt
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/sh.h4
-rw-r--r--bin/ksh/vi.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h
index 388dae59d12..cbebd9dfe4e 100644
--- a/bin/ksh/sh.h
+++ b/bin/ksh/sh.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh.h,v 1.16 2004/02/08 19:18:15 deraadt Exp $ */
+/* $OpenBSD: sh.h,v 1.17 2004/05/10 16:28:47 pvalchev Exp $ */
/*
* Public Domain Bourne/Korn shell
@@ -357,7 +357,7 @@ typedef INT32 Tflag;
#define ISMAGIC(c) ((unsigned char)(c) == MAGIC)
#define NOT '!' /* might use ^ (ie, [!...] vs [^..]) */
-#define LINE 1024 /* input line size */
+#define LINE 2048 /* input line size */
#define PATH 1024 /* pathname size (todo: PATH_MAX/pathconf()) */
#define ARRAYMAX 1023 /* max array index */
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index dec41a44bf6..b9c1b93efa6 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.12 2003/10/16 22:08:48 millert Exp $ */
+/* $OpenBSD: vi.c,v 1.13 2004/05/10 16:28:47 pvalchev Exp $ */
/*
* vi command editing
@@ -14,7 +14,7 @@
#include "ksh_stat.h" /* completion */
#include "edit.h"
-#define CMDLEN 1024
+#define CMDLEN 2048
#define Ctrl(c) (c&0x1f)
#define is_wordch(c) (letnum(c))