wpa_cli: Set buffer length the same as in wpa_supplicant_ctrl_iface_process()

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2011-08-30 11:10:13 -07:00 committed by Jouni Malinen
parent faf9a8585d
commit 89c7ac570b

View file

@ -3473,7 +3473,7 @@ static char * wpa_cli_get_default_ifname(void)
#endif /* CONFIG_CTRL_IFACE_UNIX */ #endif /* CONFIG_CTRL_IFACE_UNIX */
#ifdef CONFIG_CTRL_IFACE_NAMED_PIPE #ifdef CONFIG_CTRL_IFACE_NAMED_PIPE
char buf[2048], *pos; char buf[4096], *pos;
size_t len; size_t len;
struct wpa_ctrl *ctrl; struct wpa_ctrl *ctrl;
int ret; int ret;