diff options
| author | Hauke Mehrtens | 2019-09-01 17:43:40 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2019-09-01 17:43:40 +0000 |
| commit | f599a8dc01e01231fd116c9d1745f364c409c57f (patch) | |
| tree | a0e248ca8ef97725fb76ac6a5d97e15d7c5671e4 | |
| parent | 71ec9be5064c473e6daed122c0c31113f974ce82 (diff) | |
| download | iwinfo-f599a8dc01e01231fd116c9d1745f364c409c57f.tar.gz | |
iwinfo: Fix rate buffer size
This string could be truncated for higher rates.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | iwinfo_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |