summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-30 21:02:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-30 21:21:30 +0100
commitf9f7b70bd0e88d0094369257f07919182b1f2bdb (patch)
tree7dcc383f60af3bb04982f87fdf8b09a9bfcf0644 /test/source
parent1062aaf005b429fa4b480c2857c3479488208ed8 (diff)
coverity#1194929 String not null terminated
Change-Id: I749f4cb8340b4642040baed7f3363e2f1e4b65ad
Diffstat (limited to 'test/source')
-rw-r--r--test/source/bootstrapfixture.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index c7f8da1d232b..dc7c7b0121f6 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -131,7 +131,7 @@ OString loadFile(const OUString& rURL)
sal_uInt64 nBytesRead;
aFile.read(aBytes.get(), nSize, nBytesRead);
CPPUNIT_ASSERT_EQUAL(nSize, nBytesRead);
- OString aContent(aBytes.get());
+ OString aContent(aBytes.get(), nBytesRead);
return aContent;
}