whhops, my bad
raiz raiz@firemail.cc
Tue, 27 Dec 2016 20:18:09 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -717,7 +717,7 @@ struct iwreq wreq;
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);