Fix doVecOperation in the SysUio portability header
authorChristopher Dykes <cdykes@fb.com>
Thu, 26 May 2016 17:08:13 +0000 (10:08 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Thu, 26 May 2016 17:23:38 +0000 (10:23 -0700)
Summary: Apparently I failed to accurately transfer this particular change to fbcode, which meant it didn't actually compile on Windows.

Reviewed By: yfeldblum

Differential Revision: D3347976

fbshipit-source-id: 775682f10ab68672f6463ccc69a222ae0a52a097

folly/portability/SysUio.cpp

index 556c8bd3112eef8900c499735a04d55bc528be59..1a1dceb88d3f62093f13df95a98796721a8e4ec9 100755 (executable)
@@ -102,7 +102,7 @@ static ssize_t doVecOperation(int fd, const iovec* iov, int count) {
         curLen = iov[curIov].iov_len;
       }
     } else {
-      curBase += (void*)((char*)curBase + res);
+      curBase = (void*)((char*)curBase + res);
       curLen -= res;
     }