Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41485
3c298f89-4303-0410-b956-
a3cf2f4a3e73
{
for (i = 0, count = 0; i < cl->count; i++, c++)
{
{
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 */
c->iso3166 = c->ccode[0] * 256 + c->ccode[1];
/* IL0 -> World */