mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-04-17 14:06:48 +02:00
Compare commits
No commits in common. "41ac7a0b4b5291193d553cdf3f18d7e55147479a" and "026f653e07794f446d62427d41958cea0dbc433b" have entirely different histories.
41ac7a0b4b
...
026f653e07
@ -8,7 +8,6 @@ v1.4.1 - YYYY-MM-DD
|
||||
- Fixed the link libraries for the example source code (Issue #86)
|
||||
- Fixed handling of the Info object (Issue #87)
|
||||
- Fixed opening of PDF files less than 1024 bytes in length (Issue #87)
|
||||
- Fixed potential `NULL` dereference when reading (Issue #89)
|
||||
|
||||
|
||||
v1.4.0 - 2024-12-26
|
||||
|
@ -368,7 +368,7 @@ _pdfioFileSeek(pdfio_file_t *pdf, // I - PDF file
|
||||
if (pdf->mode == _PDFIO_MODE_READ)
|
||||
{
|
||||
// Reading, see if we already have the data we need...
|
||||
if (whence != SEEK_END && offset >= pdf->bufpos && pdf->bufend && offset < (pdf->bufpos + pdf->bufend - pdf->buffer))
|
||||
if (whence != SEEK_END && offset >= pdf->bufpos && offset < (pdf->bufpos + pdf->bufend - pdf->buffer))
|
||||
{
|
||||
// Yes, seek within existing buffer...
|
||||
pdf->bufptr = pdf->buffer + (offset - pdf->bufpos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user