diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-31 21:14:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-01 22:10:39 +0000 |
commit | dcf8f9622caa77a7f337d6b8c334605a9693dc26 (patch) | |
tree | a077e1b0ce98ec0b56249892854d84fc77ce7bf9 /vcl | |
parent | 01ed7a331b78e8ca64783fc8d3adefebf782dacb (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.cxx | 2 |
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 |