diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2012-12-16 09:52:40 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2012-12-16 09:52:40 +0000 |
commit | c246a087df9ca517bf3e3a68ff8007c23e531c54 (patch) | |
tree | aa92c9880028daa24bd1518531c67d089186d77e /print.c | |
parent | 9a2fbb1978273b3e58bb4da4e3cd89315b78d659 (diff) | |
download | wireshark-c246a087df9ca517bf3e3a68ff8007c23e531c54.tar.gz wireshark-c246a087df9ca517bf3e3a68ff8007c23e531c54.tar.bz2 wireshark-c246a087df9ca517bf3e3a68ff8007c23e531c54.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++] = ' '; |