From cd23727f72b7859ba572c4e273247578c2124926 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 20 Apr 2021 02:22:38 +0200 Subject: [PATCH] iwinfo: cli: fix hwmode formatting The placeholder for the 802.11ax hwmode was missing. Signed-off-by: David Bauer --- iwinfo_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iwinfo_cli.c b/iwinfo_cli.c index ee5a0e2..82b409c 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -274,12 +274,12 @@ static char * format_encryption(struct iwinfo_crypto_entry *c) static char * format_hwmodes(int modes) { - static char buf[15]; + static char buf[17]; if (modes <= 0) snprintf(buf, sizeof(buf), "unknown"); else - snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s%s", + snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s%s%s", (modes & IWINFO_80211_A) ? "a" : "", (modes & IWINFO_80211_B) ? "b" : "", (modes & IWINFO_80211_G) ? "g" : "",