projects
/
oweals
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89296a5
)
nl80211: fix possibly unterminated ifname string
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 29 Oct 2015 09:53:56 +0000
(10:53 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 29 Oct 2015 09:53:56 +0000
(10:53 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
iwinfo_nl80211.c
patch
|
blob
|
history
diff --git
a/iwinfo_nl80211.c
b/iwinfo_nl80211.c
index a08d5807edf0ae1e347098ba22c0ff179b3d9ca4..1a1fc69db4f15f1cb4685f49bc4318db39f824b4 100644
(file)
--- 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
);
}
}
}