diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-24 13:36:02 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-24 13:36:02 +0000 |
commit | 82778b3f864b69971ac1096f97a683c72bcb5c2b (patch) | |
tree | 7df0ca9a07c3fa859c87349b68ae7bfe9bb1e45f /epan/dissectors/packet-icmp.c | |
parent | 9ac672ca81d07c2ae70709ff50be36fad5e29653 (diff) | |
download | wireshark-82778b3f864b69971ac1096f97a683c72bcb5c2b.tar.gz |
Use val_to_str_const() since we intend on passing the string to col_set_str (which expects a constant string)
svn path=/trunk/; revision=30112
Diffstat (limited to 'epan/dissectors/packet-icmp.c')
-rw-r--r-- | epan/dissectors/packet-icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-icmp.c b/epan/dissectors/packet-icmp.c index e05d23d81b..333e75d27a 100644 --- a/epan/dissectors/packet-icmp.c +++ b/epan/dissectors/packet-icmp.c @@ -698,7 +698,7 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) icmp_code = tvb_get_guint8(tvb, 1); cksum = tvb_get_ntohs(tvb, 2); - type_str = val_to_str (icmp_type, icmp_type_str, "Unknown ICMP (obsolete or malformed?)"); + type_str = val_to_str_const (icmp_type, icmp_type_str, "Unknown ICMP (obsolete or malformed?)"); switch (icmp_type) { case ICMP_UNREACH: |