aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
authorShoichi Sakane <wireshark-shoichi@tanu.org>2014-06-18 10:40:19 -0700
committerPascal Quantin <pascal.quantin@gmail.com>2014-06-18 18:11:49 +0000
commit009bebbf09d2597dcc3750fc57b0fde955658f62 (patch)
treec55280b7b8d8875c7401915f6c63b6b1da98a1ff /epan/dissectors/packet-coap.c
parent248a503a974145919df6af69226a1c29acf99e19 (diff)
Fix copy-paste probem in COAP dissector
Bug:8070 Change-Id: I7a86a37f7de6b3e4e12fe1c47980a9a6604488d6 Reviewed-on: https://code.wireshark.org/review/2390 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 54eef9e5a7..d3f4654e97 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -378,15 +378,15 @@ dissect_coap_opt_uri_query(tvbuff_t *tvb, proto_item *head_item,proto_tree *subt
const guint8 *str = NULL;
if (coap_uri_query[0] == '\0')
- g_strlcat(coap_uri_query, "?", sizeof(coap_uri_str));
+ g_strlcat(coap_uri_query, "?", sizeof(coap_uri_query));
else
- g_strlcat(coap_uri_query, "&", sizeof(coap_uri_str));
+ g_strlcat(coap_uri_query, "&", sizeof(coap_uri_query));
if (opt_length == 0) {
str = nullstr;
} else {
str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII);
- g_strlcat(coap_uri_str, str, sizeof(coap_uri_str));
+ g_strlcat(coap_uri_query, str, sizeof(coap_uri_query));
}
proto_tree_add_string(subtree, hf_coap_opt_uri_query, tvb, offset, opt_length, str);