]> git.tdb.fi Git - gldbg.git/commitdiff
Correctly advance the pointer after reading data
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Jun 2010 14:20:52 +0000 (14:20 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Jun 2010 14:20:52 +0000 (14:20 +0000)
source/gldecoder.c

index cd290aa513b3f1e69ea21009b95513bdff46a5ac..6444fcaac8515b5054f7ea97a09ce354f6577f1b 100644 (file)
@@ -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;