forked from Public-Mirror/Textractor
fix large file being read wrong
This commit is contained in:
parent
a0306fea8b
commit
b9081f2472
@ -40,7 +40,7 @@ private:
|
||||
}
|
||||
int oldSize = buffer.size();
|
||||
buffer.resize(oldSize + blockSize);
|
||||
if (!streambuf.sgetn((char*)buffer.data() + oldSize, blockSize * sizeof(C))) return {};
|
||||
if (!streambuf.sgetn((char*)(buffer.data() + oldSize), blockSize * sizeof(C))) return {};
|
||||
i = max(0, oldSize - (int)delimiter.size());
|
||||
if (discard)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user