diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-02 21:43:17 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-02 21:43:17 +0000 |
commit | 2dba3f8aca5f1cca27b06e97347cfa849458b472 (patch) | |
tree | 1458f93e6982219866452ee80928d0a057480198 /package | |
parent | 9e0f732b35cd7d942d47a9eb9a893261e4a27b24 (diff) | |
download | upstream-2dba3f8aca5f1cca27b06e97347cfa849458b472.tar.gz upstream-2dba3f8aca5f1cca27b06e97347cfa849458b472.tar.bz2 upstream-2dba3f8aca5f1cca27b06e97347cfa849458b472.zip |
iwinfo: fix string format for country code
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41485
Diffstat (limited to 'package')
-rw-r--r-- | package/network/utils/iwinfo/src/iwinfo_wl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_wl.c b/package/network/utils/iwinfo/src/iwinfo_wl.c index 0b3b4bd8a2..b626b285bb 100644 --- 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++) { - sprintf(c->ccode, &cl->country_abbrev[i * WLC_CNTRY_BUF_SZ]); + snprintf(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 */ |