DECT-NWK: Update wmem_strbuf function usage

In 32f88ad22c the function to create new
sized wmwm strbufs has been renamed and got a parameter change. This
updates DECT-NWK parts accordingly.
This commit is contained in:
Bernhard Dick 2022-12-12 21:04:19 +01:00 committed by Alexis La Goutte
parent b7d2d107d4
commit cdf134b4e5
2 changed files with 2 additions and 2 deletions

View File

@ -1908,7 +1908,7 @@ get_dect_standard_8bits_string(wmem_allocator_t *scope, const guint8 *ptr, gint
const guint8 *current_byte_ptr;
wmem_strbuf_t *strbuf;
strbuf = wmem_strbuf_sized_new(scope, length+1, 0);
strbuf = wmem_strbuf_new_sized(scope, length+1);
for (position = 0, current_byte_ptr = ptr; position < length; current_byte_ptr++, position++) {
if (*current_byte_ptr & 0x80) {

View File

@ -1834,7 +1834,7 @@ static proto_item* add_dect_nwk_dect_charset_tree_item(proto_tree *tree, packet_
keypad_string = tvb_get_string_enc(pinfo->pool, tvb, start, length, ENC_DECT_STANDARD_8BITS);
current_char_ptr = keypad_string;
keypad_information = wmem_strbuf_sized_new(pinfo->pool, length, 0);
keypad_information = wmem_strbuf_new_sized(pinfo->pool, length);
for ( current_char_position = 0; current_char_position < length; current_char_position++ ) {
current_char = g_utf8_get_char(current_char_ptr);
if ( current_char < 0x20 ) {