[Libreoffice-commits] core.git: tools/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jun 21 21:55:45 UTC 2020
tools/source/misc/json_writer.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 18b9f927a00b1cafecd450bbe276bbbfe009b7f3
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jun 21 23:09:35 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Jun 21 23:55:10 2020 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list