projects
/
oweals
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ec9be
)
iwinfo: Fix rate buffer size
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 1 Sep 2019 17:43:40 +0000
(19:43 +0200)
committer
Hauke 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
patch
|
blob
|
history
diff --git
a/iwinfo_cli.c
b/iwinfo_cli.c
index 4a4727be7808ce2354d40e4c7fef885b149b3010..acfeb759fb6124b03188a547aef2f5a591cf962c 100644
(file)
--- 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[1
4
];
+ static char buf[1
8
];
if (rate <= 0)
snprintf(buf, sizeof(buf), "unknown");