diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-11 15:46:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-11 15:46:59 +0200 |
commit | 3d38d1d17eba37b0985dd2857b4539410824a3e6 (patch) | |
tree | 3d01c84c2141106e6684ce9bed5b60e965797efd /iwinfo_nl80211.c | |
parent | 16597a70bc946937130db9f0832e3d0c448c8233 (diff) | |
download | iwinfo-3d38d1d17eba37b0985dd2857b4539410824a3e6.tar.gz |
iwinfo: null-terminate country code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r-- | iwinfo_nl80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 55bfd0f..7aaae6b 100644 --- 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)); |