projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd1aa6
)
iwinfo: fix string format for country code
author
Hauke Mehrtens
<hauke@openwrt.org>
Wed, 2 Jul 2014 21:43:17 +0000
(21:43 +0000)
committer
Hauke Mehrtens
<hauke@openwrt.org>
Wed, 2 Jul 2014 21:43:17 +0000
(21:43 +0000)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41485
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/network/utils/iwinfo/src/iwinfo_wl.c
patch
|
blob
|
history
diff --git
a/package/network/utils/iwinfo/src/iwinfo_wl.c
b/package/network/utils/iwinfo/src/iwinfo_wl.c
index
0b3b4bd
..
b626b28
100644
(file)
--- a/
package/network/utils/iwinfo/src/iwinfo_wl.c
+++ b/
package/network/utils/iwinfo/src/iwinfo_wl.c
@@
-565,7
+565,7
@@
static int wl_get_countrylist(const char *ifname, char *buf, int *len)
{
for (i = 0, count = 0; i < cl->count; i++, c++)
{
- s
printf(c->ccode
, &cl->country_abbrev[i * WLC_CNTRY_BUF_SZ]);
+ s
nprintf(c->ccode, sizeof(c->ccode), "%s"
, &cl->country_abbrev[i * WLC_CNTRY_BUF_SZ]);
c->iso3166 = c->ccode[0] * 256 + c->ccode[1];
/* IL0 -> World */