From ff42c86f9a39f23e89bad0581b126c9f96e48268 Mon Sep 17 00:00:00 2001 From: Laurent Deniel Date: Mon, 21 Aug 2000 13:04:05 +0000 Subject: [PATCH] Put an indentation in hexdump display of a TCP stream only if both directions are displayed. svn path=/trunk/; revision=2321 --- gtk/follow_dlg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/follow_dlg.c b/gtk/follow_dlg.c index 888edc19ea..8dddc1da9a 100644 --- a/gtk/follow_dlg.c +++ b/gtk/follow_dlg.c @@ -1,6 +1,6 @@ /* follow_dlg.c * - * $Id: follow_dlg.c,v 1.7 2000/08/17 07:56:32 guy Exp $ + * $Id: follow_dlg.c,v 1.8 2000/08/21 13:04:05 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -485,7 +485,8 @@ follow_read_stream(follow_info_t *follow_info, int i, cur; /* is_server indentation : put 63 spaces at the begenning * of the string */ - sprintf(hexbuf, is_server ? + sprintf(hexbuf, (is_server && + follow_info->show_stream == BOTH_HOSTS) ? " " " %08X " : "%08X ", *global_pos);