diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-19 10:55:24 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-19 12:52:02 +0000 |
commit | 9b2c889abe0219fc162659e106c5b95deb6268f3 (patch) | |
tree | d0b8d304087a7b25e94e65c22ad85c08e40dd3f2 /epan/dissectors/packet-nwp.c | |
parent | c4a4b7c649840843063d012a4db91d6c69292b3f (diff) |
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>
Diffstat (limited to 'epan/dissectors/packet-nwp.c')
-rw-r--r-- | epan/dissectors/packet-nwp.c | 2 |
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); |