summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/backupfilehelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx
index 97c1e9d109d6..749b9896cb0b 100644
--- a/comphelper/source/misc/backupfilehelper.cxx
+++ b/comphelper/source/misc/backupfilehelper.cxx
@@ -160,7 +160,7 @@ namespace
// read rTarget
if (osl::File::E_None == rFile->read(static_cast<void*>(aTarget.data()), nLength, nBaseRead) && nLength == nBaseRead)
{
- rTarget = OString(aTarget.data(), static_cast< sal_Int32 >(nLength));
+ rTarget = OString(aTarget.data(), static_cast<sal_Int32>(nBaseRead));
return true;
}