mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Fix bug with xref stream with no index.
Fix bug with pdfiOStreamPeek not appending new stream data to buffer. Add more debug printfs for values.
This commit is contained in:
@@ -514,7 +514,7 @@ pdfioStreamPeek(pdfio_stream_t *st, // I - Stream
|
||||
st->bufptr = st->buffer;
|
||||
st->bufend = st->buffer + remaining;
|
||||
|
||||
if ((rbytes = stream_read(st, st->bufptr, sizeof(st->buffer) - remaining)) > 0)
|
||||
if ((rbytes = stream_read(st, st->bufend, sizeof(st->buffer) - remaining)) > 0)
|
||||
{
|
||||
st->bufend += rbytes;
|
||||
remaining += (size_t)rbytes;
|
||||
|
Reference in New Issue
Block a user