summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-gnutella.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-gnutella.c')
-rw-r--r--epan/dissectors/packet-gnutella.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-gnutella.c b/epan/dissectors/packet-gnutella.c
index 490e58e077..4414a74f79 100644
--- a/epan/dissectors/packet-gnutella.c
+++ b/epan/dissectors/packet-gnutella.c
@@ -131,11 +131,10 @@ static void dissect_gnutella_query(tvbuff_t *tvb, guint offset, proto_tree *tree
ENC_ASCII|ENC_NA);
}
else {
- proto_tree_add_text(tree,
- tvb,
+ proto_tree_add_string_format(tree,
+ hf_gnutella_query_search, tvb,
offset + GNUTELLA_QUERY_SEARCH_OFFSET,
- 0,
- "Missing data for Query Search.");
+ 0, "", "Missing data for Query Search.");
}
}