From 294bea18c1657791e2b586d0efd3a05ab026c350 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 7 Oct 2002 13:49:16 +0000 Subject: [PATCH] Removed a useless #include git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1430 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/support/DataIO.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kits/support/DataIO.cpp b/src/kits/support/DataIO.cpp index f692f10a57..d2761bb6eb 100644 --- a/src/kits/support/DataIO.cpp +++ b/src/kits/support/DataIO.cpp @@ -32,7 +32,6 @@ // Standard Includes ----------------------------------------------------------- #include #include -#include #include // System Includes ------------------------------------------------------------- @@ -347,9 +346,11 @@ BMallocIO::WriteAt(off_t pos, const void *buffer, size_t size) if (newSize > fMallocSize) error = SetSize(newSize); - if (error == B_OK) + if (error == B_OK) { memcpy(fData + pos, buffer, size); - + if (pos + size > fLength) + fLength = pos + size; + } return error != B_OK ? error : size; }