aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sna.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 15:34:00 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 15:34:00 +0000
commit50b63025e0095d3f9eef022494ca7bd933eb4328 (patch)
tree351a05d6273d5d6c5ac0aac64831adad5c94186a /epan/dissectors/packet-sna.c
parent00a29cec868ed438c860b79d88e0f9d0d08173de (diff)
Fix some "format not a string literal and no format arguments" warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26648 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sna.c')
-rw-r--r--epan/dissectors/packet-sna.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sna.c b/epan/dissectors/packet-sna.c
index 9ed35ed06f..003c7c7070 100644
--- a/epan/dissectors/packet-sna.c
+++ b/epan/dissectors/packet-sna.c
@@ -1150,7 +1150,7 @@ dissect_optional(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(type == 0x22) ett = ett_sna_nlp_opti_22;
if (tree) {
sub_item = proto_tree_add_text(tree, tvb,
- offset, len << 2,
+ offset, len << 2, "%s",
val_to_str(type, sna_nlp_opti_vals,
"Unknown Segment Type"));
sub_tree = proto_item_add_subtree(sub_item, ett);
@@ -2464,11 +2464,11 @@ dissect_control(tvbuff_t *parent_tvb, int offset, int control_len,
if (key == 0x0e) ett = ett_sna_control_0e;
if (((key == 0) || (key == 3) || (key == 5)) && hpr)
- sub_item = proto_tree_add_text(tree, tvb, 0, -1,
+ sub_item = proto_tree_add_text(tree, tvb, 0, -1, "%s",
val_to_str(key, sna_control_hpr_vals,
"Unknown Control Vector"));
else
- sub_item = proto_tree_add_text(tree, tvb, 0, -1,
+ sub_item = proto_tree_add_text(tree, tvb, 0, -1, "%s",
val_to_str(key, sna_control_vals,
"Unknown Control Vector"));
sub_tree = proto_item_add_subtree(sub_item, ett);