iwinfo: Fix rate buffer size
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Sep 2019 17:43:40 +0000 (19:43 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Sep 2019 17:43:40 +0000 (19:43 +0200)
This string could be truncated for higher rates.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
iwinfo_cli.c

index 4a4727be7808ce2354d40e4c7fef885b149b3010..acfeb759fb6124b03188a547aef2f5a591cf962c 100644 (file)
@@ -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");