Kaydet (Commit) dcf8f962 authored tarafından Caolán McNamara's avatar Caolán McNamara

help coverity out wrt coverity#1267682 String not null terminated

Change-Id: Ib72c0daf8573314d601d7acea3a1fbb3183b4bb6
üst 01ed7a33
...@@ -51,7 +51,7 @@ OString loadShader(const OUString& rFilename) ...@@ -51,7 +51,7 @@ OString loadShader(const OUString& rFilename)
sal_uInt64 nBytesRead = 0; sal_uInt64 nBytesRead = 0;
aFile.read(content.get(), nSize, nBytesRead); aFile.read(content.get(), nSize, nBytesRead);
assert(nSize == nBytesRead); assert(nSize == nBytesRead);
content[nBytesRead] = 0; content.get()[nBytesRead] = 0;
return OString(content.get()); return OString(content.get());
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment