HICP: Replace tvb_get_const_stringz()

Ping #18447.
This commit is contained in:
João Valverde 2022-10-03 23:22:04 +01:00
parent a0a2386f74
commit 9a16cda9c7
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ dissect_hicp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
gint lengthp = 0;
gdouble ext_value = 0;
const guint8* parameters_ptr = NULL;
const char* parameters_ptr = NULL;
gchar** parameters = NULL;
gchar* parameter_value = NULL;
@ -105,7 +105,7 @@ dissect_hicp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
hicp_tree = proto_item_add_subtree(ti, ett_hicp);
parameters_ptr = tvb_get_const_stringz(tvb, offset, &lengthp);
parameters_ptr = tvb_get_stringz_enc(pinfo->pool, tvb, offset, &lengthp, ENC_ASCII);
parameters = wmem_strsplit(pinfo->pool, (const gchar*)parameters_ptr, HICP_DELIMITER, -1);
for (guint i = 0; i < g_strv_length(parameters); i++) {
if (g_strrstr(parameters[i], " = ") != NULL) {