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:
16597a7
)
iwinfo: null-terminate country code
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 11 Sep 2015 13:46:49 +0000
(15:46 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 11 Sep 2015 13:46:59 +0000
(15:46 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
iwinfo_nl80211.c
patch
|
blob
|
history
diff --git
a/iwinfo_nl80211.c
b/iwinfo_nl80211.c
index 55bfd0f0e0a0a84a664402e99905950e81a5ef44..7aaae6b3e423376bd6e4486c942ccfd6896604a9 100644
(file)
--- a/
iwinfo_nl80211.c
+++ b/
iwinfo_nl80211.c
@@
-2480,6
+2480,7
@@
static int nl80211_get_countrylist(const char *ifname, char *buf, int *len)
e->iso3166 = l->iso3166;
e->ccode[0] = (l->iso3166 / 256);
e->ccode[1] = (l->iso3166 % 256);
+ e->ccode[2] = 0;
}
*len = (count * sizeof(struct iwinfo_country_entry));