summaryrefslogtreecommitdiffabout
authorLukasz Janyst <ljanyst@cern.ch>2011-11-03 12:22:33 (CET)
committer Lukasz Janyst <ljanyst@cern.ch>2011-11-03 12:22:33 (CET)
commitd10c528900539891037566b5d26c26be1c662132 (patch) (side-by-side diff)
treeacdac36bed60beb071ad1ae35ce8c1ca010d4f75
parentd53c554141c0881937616ee2ec88c0d8955c885e (diff)
downloadxrootd-d10c528900539891037566b5d26c26be1c662132.tar.gz
xrootd-d10c528900539891037566b5d26c26be1c662132.tar.bz2
[bug #87880] Properly unpack the incomming data in the case when the actual readv vector length modulo READV_MAXCHUNKS was 1
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/XrdClient/XrdClient.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrdClient/XrdClient.cc b/src/XrdClient/XrdClient.cc
index 963f110..44ab171 100644
--- a/src/XrdClient/XrdClient.cc
+++ b/src/XrdClient/XrdClient.cc
@@ -763,7 +763,7 @@ kXR_int64 XrdClient::ReadV(char *buf, kXR_int64 *offsets, int *lens, int nbuf)
fCounters.ReadVSubRequests++;
fCounters.ReadVSubChunks++;
fCounters.ReadVBytes += reqvect[startitem].len;
- res = Read(buf, reqvect[startitem].offset, reqvect[startitem].len);
+ res = Read(buf+bytesread, reqvect[startitem].offset, reqvect[startitem].len);
} else {
// Asynchronous, res stays the same