X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=iwinfo_lua.c;h=ecf257d67678331425bbc2a8a496d20ba038a060;hb=d6381634c28bfdc9701352146a82a4e8c35f4eff;hp=996f2911e2755c4c3279e08833fa55153bab72b9;hpb=4aa6c5a45cde865e6fc0a31f38aa151bdf73f448;p=project%2Fiwinfo.git diff --git a/iwinfo_lua.c b/iwinfo_lua.c index 996f291..ecf257d 100644 --- a/iwinfo_lua.c +++ b/iwinfo_lua.c @@ -155,10 +155,12 @@ static char * iwinfo_crypto_desc(struct iwinfo_crypto_entry *c) for (i = 0; i < 3; i++) if (c->wpa_version & (1 << i)) + { if (i) pos += sprintf(pos, "WPA%d/", i + 1); else pos += sprintf(pos, "WPA/"); + } pos--;