fixed a bug in memreader.
authorkramm <kramm>
Mon, 24 Jan 2005 20:53:58 +0000 (20:53 +0000)
committerkramm <kramm>
Mon, 24 Jan 2005 20:53:58 +0000 (20:53 +0000)
lib/bitio.c

index 26d89c1..b3cdf24 100644 (file)
@@ -89,7 +89,7 @@ static int reader_memread(struct reader_t*reader, void* data, int len)
        return len;
     } else {
        memcpy(data, &mr->data[reader->pos], mr->length - reader->pos);
-       reader->pos = mr->length;
+       reader->pos += mr->length;
        return mr->length - reader->pos;
     }
 }