summaryrefslogtreecommitdiff
path: root/pbstream.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-02-25 22:32:55 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-02-25 22:32:55 -0800
commit47fb22194caf9e8dfeade5e8a63c10bf4f223fac (patch)
tree3e31fc09b58e28fc99f92f8e84431bc13ac48eb2 /pbstream.c
parente6b461c84af646e3cb93e1c9fc965f2da4b92f12 (diff)
Another test, another bugfix.
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