mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
seekg position should be relative to beginning #4413 aleph-us/devs#397
This commit is contained in:
@@ -144,7 +144,7 @@ private:
|
||||
T len = 0;
|
||||
if (istr)
|
||||
{
|
||||
istr.seekg(rangeStart);
|
||||
istr.seekg(rangeStart, std::ios_base::beg);
|
||||
istr.read(buffer.begin(), bufferSize);
|
||||
std::streamsize n = istr.gcount();
|
||||
while (n > 0)
|
||||
@@ -209,7 +209,7 @@ private:
|
||||
char c = 0;
|
||||
if (istr)
|
||||
{
|
||||
istr.seekg(rangeStart);
|
||||
istr.seekg(rangeStart, std::ios_base::beg);
|
||||
istr.get(c);
|
||||
while (istr && ostr && (len < rangeLength))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user