From fdaf57f5a53ab95b7778bc9df9238edebd8199f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 20 May 2004 19:14:09 +0000 Subject: [PATCH] Always wrote fRealViewSize blocks; didn't use the correct calculated size... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7624 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/DataEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/diskprobe/DataEditor.cpp b/src/apps/diskprobe/DataEditor.cpp index 869a05482c..c95cbd9611 100644 --- a/src/apps/diskprobe/DataEditor.cpp +++ b/src/apps/diskprobe/DataEditor.cpp @@ -684,9 +684,9 @@ DataEditor::Save() ssize_t bytesWritten; if (IsAttribute()) - bytesWritten = fFile.WriteAttr(fAttribute, fType, fRealViewOffset, fView, fRealViewSize); + bytesWritten = fFile.WriteAttr(fAttribute, fType, fRealViewOffset, fView, size); else - bytesWritten = fFile.WriteAt(fRealViewOffset, fView, fRealViewSize); + bytesWritten = fFile.WriteAt(fRealViewOffset, fView, size); if (bytesWritten < B_OK) return bytesWritten;