From: Jouni Malinen Date: Mon, 31 Mar 2014 09:29:22 +0000 (+0300) Subject: edit: Increase buffer size to 4096 bytes X-Git-Tag: hostap_2_2~404 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21611ea9fd141246aba0c0ec336a3d2ce2b292c3;p=thirdparty%2Fhostap.git edit: Increase buffer size to 4096 bytes wpa_supplicant and wpa_cli had already moved to allowing up to 4096 byte buffer size to be used for control interface commands. This was limited by the line edit buffer in interactive mode. Increase that limit to match the other buffers to avoid artificially truncating long commands. Signed-off-by: Jouni Malinen --- diff --git a/src/utils/edit.c b/src/utils/edit.c index 177ecf41d..d340bfadd 100644 --- a/src/utils/edit.c +++ b/src/utils/edit.c @@ -14,7 +14,7 @@ #include "list.h" #include "edit.h" -#define CMD_BUF_LEN 256 +#define CMD_BUF_LEN 4096 static char cmdbuf[CMD_BUF_LEN]; static int cmdbuf_pos = 0; static int cmdbuf_len = 0; diff --git a/src/utils/edit_simple.c b/src/utils/edit_simple.c index a095ea6ab..13173cb19 100644 --- a/src/utils/edit_simple.c +++ b/src/utils/edit_simple.c @@ -13,7 +13,7 @@ #include "edit.h" -#define CMD_BUF_LEN 256 +#define CMD_BUF_LEN 4096 static char cmdbuf[CMD_BUF_LEN]; static int cmdbuf_pos = 0; static const char *ps2 = NULL;