diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-29 10:53:56 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-29 10:53:56 +0100 |
commit | 41ae5bd556c5e07c9a0a51ef84a2aaa204a96e73 (patch) | |
tree | ce5f6f1a1bca61778b74bece75be1fe61fd183ce /iwinfo_nl80211.c | |
parent | 89296a5f170067fa13becfdaeee319bae10d4410 (diff) | |
download | iwinfo-41ae5bd556c5e07c9a0a51ef84a2aaa204a96e73.tar.gz |
nl80211: fix possibly unterminated ifname string
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r-- | iwinfo_nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index a08d580..1a1fc69 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -604,7 +604,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); } } } |