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-cups.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-cups.c') diff --git a/epan/dissectors/packet-cups.c b/epan/dissectors/packet-cups.c index 8611be0955..4e8e8ade42 100644 --- a/epan/dissectors/packet-cups.c +++ b/epan/dissectors/packet-cups.c @@ -337,8 +337,9 @@ get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) const guint8* s = NULL; guint l = 0; gint o; + guchar found_needle = 0; - o = tvb_pbrk_guint8(tvb, offset, -1, (const guint8*)" \t\r\n"); + o = tvb_pbrk_guint8(tvb, offset, -1, (const guint8*)" \t\r\n", NULL); if (o != -1) { l = o - offset; s = tvb_get_ptr(tvb, offset, l); -- cgit v1.2.3