From: raiz Date: Tue, 27 Dec 2016 17:18:09 +0000 (+0300) Subject: whhops, my bad X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=e9f738b8b6afa1d94db666d657319e0b5647cb1f;p=suckless%2Fslstatus.git whhops, my bad --- 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);