aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-08-30 18:10:13 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-18 09:21:44 (GMT)
commit89c7ac570bd9630c78f6df67c84bb04abde8f757 (patch)
tree6b9ea3fcde2f466a200642ee2923b293e8a2dcff /wpa_supplicant/wpa_cli.c
parentfaf9a8585d3e187074c7991e1cd7fb3792baf53e (diff)
downloadhostap-89c7ac570bd9630c78f6df67c84bb04abde8f757.zip
hostap-89c7ac570bd9630c78f6df67c84bb04abde8f757.tar.gz
hostap-89c7ac570bd9630c78f6df67c84bb04abde8f757.tar.bz2
wpa_cli: Set buffer length the same as in wpa_supplicant_ctrl_iface_process()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 08bc1b1..30b1d74 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -3473,7 +3473,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;