summaryrefslogtreecommitdiff
path: root/src/print_wireless_info.c
diff options
context:
space:
mode:
authorAleksandr Matveev <13134605+TimonAlex@users.noreply.github.com>2020-04-11 23:05:35 +0300
committerAleksandr Matveev <13134605+TimonAlex@users.noreply.github.com>2020-04-11 23:05:35 +0300
commit7191cce8e9eed4350d0e3087a81aa6dfcb662f7b (patch)
treeba7ce22a314c266a7160b77f42cf5822dccf920f /src/print_wireless_info.c
parent18eb04d02d55c88f3809084cf82410591f479569 (diff)
wireless: Fix rendering bitrate
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r--src/print_wireless_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index 2403089..cfb51b6 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -605,8 +605,7 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface,
snprintf(string_ip, STRING_SIZE, "%s", ip_address);
#if defined(__linux__) || defined(__FreeBSD__)
- char br_buffer[128];
- print_bitrate(br_buffer, sizeof(br_buffer), info.bitrate, format_bitrate);
+ print_bitrate(string_bitrate, sizeof(string_bitrate), info.bitrate, format_bitrate);
#endif
placeholder_t placeholders[] = {