aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2012-12-16 09:52:40 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2012-12-16 09:52:40 +0000
commitc246a087df9ca517bf3e3a68ff8007c23e531c54 (patch)
treeaa92c9880028daa24bd1518531c67d089186d77e /print.c
parent9a2fbb1978273b3e58bb4da4e3cd89315b78d659 (diff)
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8027 :
Fix tshark hex bytes output svn path=/trunk/; revision=46557
Diffstat (limited to 'print.c')
-rw-r--r--print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print.c b/print.c
index 5fd989acb7..b41cd51e53 100644
--- a/print.c
+++ b/print.c
@@ -946,7 +946,7 @@ print_hex_data_buffer(print_stream_t *stream, const guchar *cp,
guint length, packet_char_enc encoding)
{
register unsigned int ad, i, j, k, l;
- gchar c;
+ guchar c;
gchar line[MAX_LINE_LEN + 1];
unsigned int use_digits;
static gchar binhex[16] = {
@@ -983,7 +983,7 @@ print_hex_data_buffer(print_stream_t *stream, const guchar *cp,
do {
l--;
c = (ad >> (l*4)) & 0xF;
- line[j++] = binhex[(unsigned int) c];
+ line[j++] = binhex[c];
} while (l != 0);
line[j++] = ' ';
line[j++] = ' ';