aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-08-30 11:10:13 -0700
committerDmitry Shmidt <dimitrysh@google.com>2011-08-30 11:50:17 -0700
commitc97d8bf1d6959387a528c901eaf9c0bff47da853 (patch)
treefaa1f0fcf837fe0fd3d12e16fddca8122fd0c43f
parent0dc7a27a4d3b8328028ced3a71bd331e77981166 (diff)
downloadandroid_external_wpa_supplicant_8-c97d8bf1d6959387a528c901eaf9c0bff47da853.tar.gz
android_external_wpa_supplicant_8-c97d8bf1d6959387a528c901eaf9c0bff47da853.tar.bz2
android_external_wpa_supplicant_8-c97d8bf1d6959387a528c901eaf9c0bff47da853.zip
Set buffer length the same as in wpa_supplicant_ctrl_iface_process()
Bug: 5236589 Change-Id: Iae8405aa17d5cc6bbffcff3a37d81df74143aabe Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r--wpa_supplicant/wpa_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 3810ee03..f09a6f07 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -250,7 +250,7 @@ static void wpa_cli_msg_cb(char *msg, size_t len)
static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print)
{
- char buf[2048];
+ char buf[4096];
size_t len;
int ret;
@@ -3225,7 +3225,7 @@ static char * wpa_cli_get_default_ifname(void)
#endif /* CONFIG_CTRL_IFACE_UNIX */
#ifdef CONFIG_CTRL_IFACE_NAMED_PIPE
- char buf[2048], *pos;
+ char buf[4096], *pos;
size_t len;
struct wpa_ctrl *ctrl;
int ret;