From: Mikko Rasa Date: Mon, 14 Jun 2010 14:20:52 +0000 (+0000) Subject: Correctly advance the pointer after reading data X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=498c37732c8849b49819c6b64fe42256ca7f6e04;p=gldbg.git Correctly advance the pointer after reading data --- diff --git a/source/gldecoder.c b/source/gldecoder.c index cd290aa..6444fca 100644 --- a/source/gldecoder.c +++ b/source/gldecoder.c @@ -176,6 +176,9 @@ static void read_data(pointer *v, GlPacket *pkt) *v = pkt->ptr; else *v = NULL; + pkt->ptr += vlen; + pkt->chunk -= vlen; + pkt->total -= vlen; } typedef const char *string;