From 25af78517ec4f15d11864f7785f5cf4856821a80 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Mon, 8 Mar 2010 20:45:13 +0000 Subject: Make tvb_pbrk_guint8() return the found needle. svn path=/trunk/; revision=32144 --- epan/dissectors/packet-sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-sdp.c') diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c index 37ecc38c2b..1454b75a82 100644 --- a/epan/dissectors/packet-sdp.c +++ b/epan/dissectors/packet-sdp.c @@ -989,7 +989,7 @@ static void dissect_sdp_session_attribute(tvbuff_t *tvb, packet_info * pinfo, pr offset = next_offset + 1; if (strcmp((char*)field_name, "ipbcp") == 0) { - offset = tvb_pbrk_guint8(tvb,offset,-1,(guint8 *)"0123456789"); + offset = tvb_pbrk_guint8(tvb,offset,-1,(guint8 *)"0123456789", NULL); if (offset == -1) return; @@ -1003,7 +1003,7 @@ static void dissect_sdp_session_attribute(tvbuff_t *tvb, packet_info * pinfo, pr proto_tree_add_item(sdp_session_attribute_tree,hf_ipbcp_version,tvb,offset,tokenlen,FALSE); - offset = tvb_pbrk_guint8(tvb,offset,-1,(guint8 *)"ABCDEFGHIJKLMNOPQRSTUVWXYZ"); + offset = tvb_pbrk_guint8(tvb,offset,-1,(guint8 *)"ABCDEFGHIJKLMNOPQRSTUVWXYZ", NULL); if (offset == -1) return; -- cgit v1.2.3