summaryrefslogtreecommitdiff
path: root/pbstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbstream.c')
-rw-r--r--pbstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbstream.c b/pbstream.c
index 82fc4d2..8452c03 100644
--- a/pbstream.c
+++ b/pbstream.c
@@ -184,7 +184,7 @@ static pbstream_status_t get_MESSAGE(struct pbstream_parse_state *s, char *buf,
/* We're entering a sub-message. */
uint32_t tmp;
char *b = buf;
- CHECK(get_v_uint32_t(&buf, &tmp));
+ CHECK(get_v_uint32_t(&b, &tmp));
s->offset += (b-buf); /* advance past length varint. */
wvtov_MESSAGE(tmp, &d->v.delimited, s->offset);
/* Unlike STRING and BYTES, we *don't* advance past delimited here. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback