aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-05-17 19:34:30 +0000
committerGerald Combs <gerald@wireshark.org>2009-05-17 19:34:30 +0000
commit2dacd2ff637e1ced748ebeef6bf94a370e0927d2 (patch)
tree22f7acdaf0ef8ccf1a1ce4ed4e13b7e23953dbd5
parent7ea5c3cba73dd7e09f708e3a4d13199848d88779 (diff)
From Roland Illig via bug 1764:
The hexdump of the "Follow TCP Stream" feature creates a file that is about 160 characters wide. That's far beyond the size of my screen. The appended patch suggests a narrower layout. From me: Add a note about prepending each line with "C" or "S" instead. svn path=/trunk/; revision=28386
-rw-r--r--gtk/follow_stream.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/follow_stream.c b/gtk/follow_stream.c
index 62335ccb72..91fcf91b04 100644
--- a/gtk/follow_stream.c
+++ b/gtk/follow_stream.c
@@ -982,11 +982,12 @@ follow_show(follow_info_t *follow_info,
int i;
gchar *cur = hexbuf, *ascii_start;
- /* is_server indentation : put 78 spaces at the
+ /* is_server indentation : put 4 spaces at the
* beginning of the string */
+ /* XXX - We might want to prepend each line with "C" or "S" instead. */
if (is_server && follow_info->show_stream == BOTH_HOSTS) {
- memset(cur, ' ', 78);
- cur += 78;
+ memset(cur, ' ', 4);
+ cur += 4;
}
cur += g_snprintf(cur, 20, "%08X ", *global_pos);
/* 49 is space consumed by hex chars */