summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-31 21:14:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-01 22:10:39 +0000
commitdcf8f9622caa77a7f337d6b8c334605a9693dc26 (patch)
treea077e1b0ce98ec0b56249892854d84fc77ce7bf9 /vcl
parent01ed7a331b78e8ca64783fc8d3adefebf782dacb (diff)
help coverity out wrt coverity#1267682 String not null terminated
Change-Id: Ib72c0daf8573314d601d7acea3a1fbb3183b4bb6
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index a574366ef375..7ef47c231618 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -51,7 +51,7 @@ OString loadShader(const OUString& rFilename)
sal_uInt64 nBytesRead = 0;
aFile.read(content.get(), nSize, nBytesRead);
assert(nSize == nBytesRead);
- content[nBytesRead] = 0;
+ content.get()[nBytesRead] = 0;
return OString(content.get());
}
else