From fb4dfe198650e8ab64eacffc334389d5fe186355 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 24 Jan 2005 20:53:58 +0000 Subject: [PATCH] fixed a bug in memreader. --- lib/bitio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bitio.c b/lib/bitio.c index 26d89c1..b3cdf24 100644 --- a/lib/bitio.c +++ b/lib/bitio.c @@ -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; } } -- 1.7.10.4