summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/brew/SharedBufferBrew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/brew/SharedBufferBrew.cpp')
-rw-r--r--WebCore/platform/brew/SharedBufferBrew.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/WebCore/platform/brew/SharedBufferBrew.cpp b/WebCore/platform/brew/SharedBufferBrew.cpp
index 597825c..3d4c20a 100644
--- a/WebCore/platform/brew/SharedBufferBrew.cpp
+++ b/WebCore/platform/brew/SharedBufferBrew.cpp
@@ -64,6 +64,7 @@ PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& fi
int32 bytesRead;
while ((bytesRead = IFILE_Read(file.get(), result->m_buffer.data() + totalBytesRead, fileSize - totalBytesRead)) > 0)
totalBytesRead += bytesRead;
+ result->m_size = totalBytesRead;
if (totalBytesRead != fileSize) {
LOG_ERROR("Failed to fully read contents of file %s - errno(%i)", filePath.ascii().data(), IFILEMGR_GetLastError(fileMgr.get()));