diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-10-07 15:05:15 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2016-10-08 18:16:05 +0000 |
commit | 61956b8bf39075c4e8e7365cdf4e410c76e3c276 (patch) | |
tree | 50577feba09db1d5d1c7a577358d0324c142e828 /tshark.c | |
parent | b682bbd6ee5b93b45727c85293edce5ced9b337c (diff) |
column-utils: add space to improve readability.
In tshark the UTF8 arrow overlaps the ports.
When pcap file has more than 999 packets the output is
no more aligned.
Bug: 12502
Change-Id: I07f90bbc0d2f065458bc07b7fde8f6a651951b60
Reviewed-on: https://code.wireshark.org/review/18109
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3599,8 +3599,8 @@ print_columns(capture_file *cf) switch (col_item->col_fmt) { case COL_NUMBER: column_len = col_len = strlen(col_item->col_data); - if (column_len < 3) - column_len = 3; + if (column_len < 5) + column_len = 5; line_bufp = get_line_buf(buf_offset + column_len); put_spaces_string(line_bufp + buf_offset, col_item->col_data, col_len, column_len); break; |