whhops, my bad
This commit is contained in:
parent
94e87eb8ba
commit
e9f738b8b6
@ -717,7 +717,7 @@ wifi_essid(const char *iface)
|
|||||||
|
|
||||||
memset(&wreq, 0, sizeof(struct iwreq));
|
memset(&wreq, 0, sizeof(struct iwreq));
|
||||||
wreq.u.essid.length = IW_ESSID_MAX_SIZE+1;
|
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) {
|
if (sockfd == -1) {
|
||||||
warn("Failed to get ESSID for interface %s", iface);
|
warn("Failed to get ESSID for interface %s", iface);
|
||||||
|
Loading…
Reference in New Issue
Block a user