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:
8d5afdd
)
wext_scan: fix possibly unterminated ifname string
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 29 Oct 2015 09:53:32 +0000
(10:53 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 29 Oct 2015 09:53:32 +0000
(10:53 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
iwinfo_wext_scan.c
patch
|
blob
|
history
diff --git
a/iwinfo_wext_scan.c
b/iwinfo_wext_scan.c
index a06672147f139ab64b1f4cf4ab29e818667e286b..1d7ec16f31b6cf7b245dd8a1092a958c56ddf1ce 100644
(file)
--- a/
iwinfo_wext_scan.c
+++ b/
iwinfo_wext_scan.c
@@
-25,7
+25,7
@@
static int wext_ioctl(const char *ifname, int cmd, struct iwreq *wrq)
{
- strncpy(wrq->ifr_name, ifname, IFNAMSIZ);
+ strncpy(wrq->ifr_name, ifname, IFNAMSIZ
- 1
);
return iwinfo_ioctl(cmd, wrq);
}