diff --git a/epan/charsets.c b/epan/charsets.c index 85cb3695d2..badd620f70 100644 --- a/epan/charsets.c +++ b/epan/charsets.c @@ -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) { diff --git a/epan/dissectors/packet-dect-nwk.c b/epan/dissectors/packet-dect-nwk.c index 1c9f16d3b4..d7c7562ab5 100644 --- a/epan/dissectors/packet-dect-nwk.c +++ b/epan/dissectors/packet-dect-nwk.c @@ -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 ) {