aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
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++] = ' ';