/* Scanning routines to add standard types (byte, int, string...) to the protocol tree. */
static void smpp_handle_string(proto_tree *tree, tvbuff_t *tvb, int field, int *offset)
/* Scanning routines to add standard types (byte, int, string...) to the protocol tree. */
static void smpp_handle_string(proto_tree *tree, tvbuff_t *tvb, int field, int *offset)
{
    guint        len;
    len = tvb_strsize(tvb, *offset);
    if (len > 1) {
        proto_tree_add_item(tree, field, tvb, *offset, len, ENC_NA);
    }
    (*offset) += len;
}