git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a708c00
)
Fix for bug #2518: 'tshark -Tfields -e data' Omits Last Character of Data
author
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 May 2008 22:33:51 +0000
(22:33 +0000)
committer
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 May 2008 22:33:51 +0000
(22:33 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25223
f5534014
-38df-0310-8fa8-
9805f1628bb7
print.c
patch
|
blob
|
history
diff --git
a/print.c
b/print.c
index 4a24b8023ffd105b0a171706b5915ef29dee765f..999d0d6506b82b6e4125b6b20701f985e6630e7f 100644
(file)
--- a/
print.c
+++ b/
print.c
@@
-1569,9
+1569,8
@@
get_field_hex_value(GSList* src_list, field_info *fi)
p = buffer;
/* Print a simple hex dump */
for (i = 0 ; i < fi->length; i++) {
- g_snprintf(p,
len
, "%02x", pd[i]);
+ g_snprintf(p,
chars_per_byte+1
, "%02x", pd[i]);
p += chars_per_byte;
- len -= chars_per_byte;
}
return buffer;
} else {