summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2021-10-21 23:35:52 +0300
committerTeemu Ikonen <tpikonen@mailbox.org>2021-10-22 13:29:20 +0300
commit6e873f64ea84e374a14d02c665eaaf488429b784 (patch)
tree7cae2208205f6368fb0f823dc2498dae697543b9
parent9598bdaa6ae6baebae02a2a1b2fab55983f63566 (diff)
downloadgeoclue-6e873f64ea84e374a14d02c665eaaf488429b784.tar.gz
wifi: Use correct size for bssid string in on_bss_proxy_ready
This was apparently missed in commit bb0f99307e.
-rw-r--r--src/gclue-wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gclue-wifi.c b/src/gclue-wifi.c
index 3cdc6e5..09a8379 100644
--- a/src/gclue-wifi.c
+++ b/src/gclue-wifi.c
@@ -362,7 +362,7 @@ on_bss_proxy_ready (GObject *source_object,
if (wpa_bss_get_signal (bss) <= -90) {
const char *path;
- char bssid[BSSID_STR_LEN] = { 0 };
+ char bssid[BSSID_STR_LEN + 1] = { 0 };
get_bssid_from_bss (bss, bssid);
g_debug ("WiFi AP '%s' has very low strength (%u dBm)"