2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-02 03:42:30 +00:00

Avoid virtual method call in FileInputSource::read

This commit is contained in:
m-holger 2022-08-25 15:08:03 +01:00
parent a318b203be
commit 13ef50cd27

View File

@ -119,7 +119,7 @@ FileInputSource::rewind()
size_t
FileInputSource::read(char* buffer, size_t length)
{
this->last_offset = this->tell();
this->last_offset = QUtil::tell(this->file);
size_t len = fread(buffer, 1, length, this->file);
if (len == 0) {
if (ferror(this->file)) {