summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorraiz <raiz@firemail.cc>2016-12-27 20:18:09 +0300
committerraiz <raiz@firemail.cc>2016-12-27 20:18:09 +0300
commite9f738b8b6afa1d94db666d657319e0b5647cb1f (patch)
tree866cc1358e1c221d86dbc0a1796669c99f1d8c10 /slstatus.c
parent94e87eb8baaf1c20d02602ba3d01bc1babdb2e35 (diff)
whhops, my bad
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index c852b2f..6a338f9 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -717,7 +717,7 @@ wifi_essid(const char *iface)
memset(&wreq, 0, sizeof(struct iwreq));
wreq.u.essid.length = IW_ESSID_MAX_SIZE+1;
- snprintf(wreq.ifr_name, ifrn_name, "%s", iface);
+ snprintf(wreq.ifr_name, sizeof(wreq.ifr_name), "%s", iface);
if (sockfd == -1) {
warn("Failed to get ESSID for interface %s", iface);