]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Set buffer length the same as in wpa_supplicant_ctrl_iface_process()
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 30 Aug 2011 18:10:13 +0000 (11:10 -0700)
committerJouni Malinen <j@w1.fi>
Sat, 18 May 2013 09:21:44 +0000 (12:21 +0300)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/wpa_cli.c

index 08bc1b1e6c725e0050e9198b71b1e1a259d5e33b..30b1d74385c3dc565bd212d4a83f1b089ba6ffc4 100644 (file)
@@ -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;