From 89c7ac570bd9630c78f6df67c84bb04abde8f757 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Tue, 30 Aug 2011 11:10:13 -0700 Subject: [PATCH] wpa_cli: Set buffer length the same as in wpa_supplicant_ctrl_iface_process() Signed-off-by: Dmitry Shmidt --- wpa_supplicant/wpa_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 08bc1b1e6..30b1d7438 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;