From 46f41dca04ba21d77c95d909e8437102aaf2e23d Mon Sep 17 00:00:00 2001
From: Christopher Dykes <cdykes@fb.com>
Date: Thu, 26 May 2016 10:08:13 -0700
Subject: [PATCH] Fix doVecOperation in the SysUio portability header

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/folly/portability/SysUio.cpp b/folly/portability/SysUio.cpp
index 556c8bd3..1a1dceb8 100755
--- a/folly/portability/SysUio.cpp
+++ b/folly/portability/SysUio.cpp
@@ -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;
     }
 
-- 
2.34.1