From c57134f1c2a64461b1271b61b5b4aead00c79cae Mon Sep 17 00:00:00 2001
From: John Romein <romein@astron.nl>
Date: Thu, 14 Aug 2008 07:44:55 +0000
Subject: [PATCH] bug 225: more oops!

---
 LCS/Stream/src/FileDescriptorBasedStream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LCS/Stream/src/FileDescriptorBasedStream.cc b/LCS/Stream/src/FileDescriptorBasedStream.cc
index 467da2e6464..e43c4a3643c 100644
--- a/LCS/Stream/src/FileDescriptorBasedStream.cc
+++ b/LCS/Stream/src/FileDescriptorBasedStream.cc
@@ -43,7 +43,7 @@ void FileDescriptorBasedStream::write(const void *ptr, size_t size)
       throw SystemCallException("write");
 
     size -= bytes;
-    ptr   = static_cast<const char *>(ptr) + size;
+    ptr   = static_cast<const char *>(ptr) + bytes;
   }
 }
 
-- 
GitLab