summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-11-19 10:55:24 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2015-11-19 12:52:40 +0000
commitb3162ea33fa6135a4470593d2d03d829844398a1 (patch)
treeaf2742553007e0543fde8949967c8700703faf2e
parent5f086d38955fc6378f4c4e75f1e6d7144a5da5a0 (diff)
downloadwireshark-b3162ea33fa6135a4470593d2d03d829844398a1.tar.gz
NWP: use col_add_str to set COL_INFO
As indicated in column-utils.h, col_set_str should only be used for const strings Bug: 11726 Change-Id: I4774aac7dfba3c0f27ed90f8a4634fa19595eacb Reviewed-on: https://code.wireshark.org/review/11958 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> (cherry picked from commit 9b2c889abe0219fc162659e106c5b95deb6268f3) Reviewed-on: https://code.wireshark.org/review/11960
-rw-r--r--epan/dissectors/packet-nwp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nwp.c b/epan/dissectors/packet-nwp.c
index 7c7b03202a..d347e11f38 100644
--- a/epan/dissectors/packet-nwp.c
+++ b/epan/dissectors/packet-nwp.c
@@ -230,7 +230,7 @@ dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
type = tvb_get_guint8(tvb, NWPH_TYPE);
type_str = val_to_str(type, nwp_type_vals,
"Unknown NWP packet type (0x%02x)");
- col_set_str(pinfo->cinfo, COL_INFO, type_str);
+ col_add_str(pinfo->cinfo, COL_INFO, type_str);
/* Construct protocol tree. */
ti = proto_tree_add_item(tree, proto_nwp, tvb, 0, -1, ENC_NA);