aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1998-10-22 19:10:19 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1998-10-22 19:10:19 +0000
commitdd4f06a54c6e99d8794f30ec83be0ff2d4d15978 (patch)
tree703c17496551fcb4248385e6fc8d4cd31cca4ba8 /print.c
parent92057886bd7a8463a6c3cb9ca6a23477c00b69e3 (diff)
downloadwireshark-dd4f06a54c6e99d8794f30ec83be0ff2d4d15978.tar.gz
wireshark-dd4f06a54c6e99d8794f30ec83be0ff2d4d15978.tar.bz2
wireshark-dd4f06a54c6e99d8794f30ec83be0ff2d4d15978.zip
I added the byte count to the Data section. The print routines had to
be modified to check the beginning of the string instead of the entire string when trying to find the Data section in order to print a hex dump. svn path=/trunk/; revision=70
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.c b/print.c
index 0e113bec6b..c45faff8c6 100644
--- a/print.c
+++ b/print.c
@@ -1,7 +1,7 @@
/* print.c
* Routines for printing packet analysis trees.
*
- * $Id: print.c,v 1.6 1998/10/12 01:40:56 gerald Exp $
+ * $Id: print.c,v 1.7 1998/10/22 19:10:17 gram Exp $
*
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
@@ -344,7 +344,7 @@ void print_tree_text(FILE *fh, const u_char *pd, frame_data *fd, GtkTree *tree)
if (subtree) {
print_tree_text(fh, pd, fd, GTK_TREE(subtree));
}
- else if (strcmp("Data", text) == 0) {
+ else if (strncmp("Data (", text, 6) == 0) {
data_start = (gint) gtk_object_get_data(GTK_OBJECT(child->data),
E_TREEINFO_START_KEY);
data_len = (gint) gtk_object_get_data(GTK_OBJECT(child->data),
@@ -459,7 +459,7 @@ void print_tree_ps(FILE *fh, const u_char *pd, frame_data *fd, GtkTree *tree)
if (subtree) {
print_tree_ps(fh, pd, fd, GTK_TREE(subtree));
}
- else if (strcmp("Data", text) == 0) {
+ else if (strncmp("Data (", text, 6) == 0) {
data_start = (gint) gtk_object_get_data(GTK_OBJECT(child->data),
E_TREEINFO_START_KEY);
data_len = (gint) gtk_object_get_data(GTK_OBJECT(child->data),