From f599a8dc01e01231fd116c9d1745f364c409c57f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 1 Sep 2019 19:43:40 +0200 Subject: [PATCH] iwinfo: Fix rate buffer size This string could be truncated for higher rates. Signed-off-by: Hauke Mehrtens --- iwinfo_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iwinfo_cli.c b/iwinfo_cli.c index 4a4727b..acfeb75 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -130,7 +130,7 @@ static char * format_noise(int noise) static char * format_rate(int rate) { - static char buf[14]; + static char buf[18]; if (rate <= 0) snprintf(buf, sizeof(buf), "unknown");