Initial working pdfioFileOpen, test program.

This commit is contained in:
Michael R Sweet
2021-05-01 11:50:17 -04:00
parent d13364a4fd
commit f5f0e190b5
3 changed files with 21 additions and 6 deletions

View File

@@ -122,7 +122,7 @@ _pdfioFileGets(pdfio_file_t *pdf, // I - PDF file
while (!eol)
{
// If there are characters ready in the buffer, use them...
while (pdf->bufptr < pdf->bufend && bufptr < bufend)
while (!eol && pdf->bufptr < pdf->bufend && bufptr < bufend)
{
char ch = *(pdf->bufptr++); // Next character in buffer