From d7c62c60914f717c6ed03bc65bd6febc000d9ece Mon Sep 17 00:00:00 2001 From: Ethan Henderson Date: Fri, 26 Jan 2018 01:52:25 -0800 Subject: [PATCH] Changed snprintf buffer size for bitrate Should allow for higher bitrates to be printed to the console. Fixes #5 --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.c b/interface.c index fb96feb..1b75077 100644 --- a/interface.c +++ b/interface.c @@ -4280,8 +4280,8 @@ void interface_cmdline_formatted_info (const int server_sock, snprintf(time_sec_str, 5, "%d", curr_file.tags->time); snprintf(curr_time_sec_str, 5, "%d", curr_file.curr_time); - snprintf(file_bitrate_str, 4, "%d", MAX(curr_file.bitrate, 0)); - snprintf(file_rate_str, 3, "%d", curr_file.rate); + snprintf(file_bitrate_str, 6, "%d", MAX(curr_file.bitrate, 0)); + snprintf(file_rate_str, 6, "%d", curr_file.rate); } str = str_repl(str, "%state", str_info.state);