projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e87eb
)
whhops, my bad
author
raiz
<raiz@firemail.cc>
Tue, 27 Dec 2016 17:18:09 +0000
(20:18 +0300)
committer
raiz
<raiz@firemail.cc>
Tue, 27 Dec 2016 17:18:09 +0000
(20:18 +0300)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index c852b2f2916642c15b4de471b03d5da1c07460ab..6a338f99d3e1128bd95d736bf5e824bdf3ee7600 100644
(file)
--- 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);