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 <j@w1.fi>
This commit is contained in:
parent
0b2c59e315
commit
21611ea9fd
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue