diff options
author | raiz <raiz@firemail.cc> | 2016-12-27 20:18:09 +0300 |
---|---|---|
committer | raiz <raiz@firemail.cc> | 2016-12-27 20:18:09 +0300 |
commit | af6ec364581c53f142053b57ba1140c19cdade8e (patch) | |
tree | 866cc1358e1c221d86dbc0a1796669c99f1d8c10 | |
parent | e969d5ed6cca4466256a5acb29083f9ba5e9dcd6 (diff) |
whhops, my bad
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |