projects
/
project
/
iwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iwinfo: assign explicit length to IWINFO_*_NAMES[] to fix compile issues
[project/iwinfo.git]
/
iwinfo_nl80211.c
diff --git
a/iwinfo_nl80211.c
b/iwinfo_nl80211.c
index
a08d580
..
67d551c
100644
(file)
--- a/
iwinfo_nl80211.c
+++ b/
iwinfo_nl80211.c
@@
-218,9
+218,6
@@
static struct nl80211_msg_conveyor * nl80211_new(struct genl_family *family,
return &cv;
err:
- if (cb)
- nl_cb_put(cb);
-
if (req)
nlmsg_free(req);
@@
-604,7
+601,7
@@
static char * nl80211_phy2ifname(const char *ifname)
((ifidx < 0) || (cifidx < ifidx)))
{
ifidx = cifidx;
- strncpy(nif, e->d_name, sizeof(nif));
+ strncpy(nif, e->d_name, sizeof(nif)
- 1
);
}
}
}