diff --git a/iwinfo_cli.c b/iwinfo_cli.c index 1ca8999..b533ffe 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -254,10 +254,12 @@ static char * format_encryption(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--; 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--;