diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-01-21 00:44:00 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-01-21 00:44:00 +0100 |
commit | e7bacdee090f62937eba802647b08f1a2657c7d9 (patch) | |
tree | 5a58e0b025af1d38cd6650f4b8836838b0faef9d | |
parent | 7b3611a0d3a158dc44c1be8fd60e75cc6d937ef0 (diff) |
MAX_TERMINAL_LEN -> MAX_TERMINAL_WIDTH seems more precise
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | progressbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progressbar.c b/progressbar.c index 3224e91..46ffe66 100644 --- a/progressbar.c +++ b/progressbar.c @@ -15,7 +15,7 @@ #include <assert.h> #define MAX_CMDLINE_LEN 512 -#define MAX_TERMINAL_LEN 2048 +#define MAX_TERMINAL_WIDTH 2048 struct filtered_dir_entries { @@ -143,7 +143,7 @@ struct file_info { float last_reported_rate; } xfer_rate_history; struct { - char buf[MAX_TERMINAL_LEN]; + char buf[MAX_TERMINAL_WIDTH]; size_t printable_chars; size_t unprintable_chars; } terminal_output; @@ -260,7 +260,7 @@ static int vadd_printable_buf(struct terminal const * const term, struct file_info * const finfo, const char * const format, va_list ap) { - char tmp_buf[MAX_TERMINAL_LEN]; + char tmp_buf[MAX_TERMINAL_WIDTH]; int snprintf_retval; size_t remaining_len, total_len; |