summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/wireless/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wireless/plugin.c b/src/plugins/wireless/plugin.c
index feb12de..14eab42 100644
--- a/src/plugins/wireless/plugin.c
+++ b/src/plugins/wireless/plugin.c
@@ -63,7 +63,7 @@ static void deinit(plugin_t *plugin, DBusConnection *connection) {
static void handle_incoming(plugin_t *plugin, DBusConnection *connection) {
struct wpa_ctrl *ctrl_conn = (struct wpa_ctrl *) plugin->priv;
char buf[2048];
- size_t len;
+ size_t len = sizeof(buf);
wpa_ctrl_recv(ctrl_conn, buf, &len);
buf[len] = '\0';
printf("received event: %s\n", buf);