diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-21 23:09:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-21 23:55:10 +0200 |
commit | 18b9f927a00b1cafecd450bbe276bbbfe009b7f3 (patch) | |
tree | 263d3baef31bb39ce69d49d1e3638a7a8be4a50e /tools/source | |
parent | 387a35fae2a539706f605f052322c1a384b07ce1 (diff) |
Avoid one more unhelpful -Werror=stringop-truncation
...after cb95276e6e6bf12a1c06d5c252551e55c788fcb2 "use JsonWriter for the rest
of ITiledRenderable", similar to de32eb539bbcf291f9968ae12696e1317fdb855d "Avoid
unhelpful -Werror=stringop-truncation"
Change-Id: I8782a8a936a5ff0351b6e6d171a00cb8f4a1b2d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96820
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/misc/json_writer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx index 251c44c0246f..95c8b59e5d02 100644 --- a/tools/source/misc/json_writer.cxx +++ b/tools/source/misc/json_writer.cxx @@ -76,7 +76,7 @@ ScopedJsonWriterArray JsonWriter::startArray(const char* pNodeName) ++mPos; memcpy(mPos, pNodeName, len); mPos += len; - strncpy(mPos, "\": [ ", 5); + memcpy(mPos, "\": [ ", 5); mPos += 5; mStartNodeCount++; mbFirstFieldInNode = true; |