diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-03-08 20:45:13 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-03-08 20:45:13 +0000 |
commit | 25af78517ec4f15d11864f7785f5cf4856821a80 (patch) | |
tree | 3219dd0f933a6450e80401c9dcd2f481a425e112 /epan/dissectors/packet-cups.c | |
parent | 990454aa93f83fcdfb3bef4c02d34052ee5335c2 (diff) |
Make tvb_pbrk_guint8() return the found needle.
svn path=/trunk/; revision=32144
Diffstat (limited to 'epan/dissectors/packet-cups.c')
-rw-r--r-- | epan/dissectors/packet-cups.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |