]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
edit: Increase buffer size to 4096 bytes
authorJouni Malinen <j@w1.fi>
Mon, 31 Mar 2014 09:29:22 +0000 (12:29 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 31 Mar 2014 09:30:50 +0000 (12:30 +0300)
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 <j@w1.fi>
src/utils/edit.c
src/utils/edit_simple.c

index 177ecf41d4ecd2dc875d979f76ad99968d52f375..d340bfadd1f13b746973b7f0a55723c693b50e4e 100644 (file)
@@ -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;
index a095ea6abec5a3d711e138b69d22e86eb7426596..13173cb19361a0c8b8e555f2aef3c6e22c71e3a0 100644 (file)
@@ -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;