[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - tools/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 13 21:52:09 UTC 2020
tools/source/misc/json_writer.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d9875b11ab3e33be8e48e869fc1b85025d50dd54
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jun 21 23:09:35 2020 +0200
Commit: Aron Budea <aron.budea at collabora.com>
CommitDate: Thu Aug 13 23:51:33 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>
(cherry picked from commit 18b9f927a00b1cafecd450bbe276bbbfe009b7f3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100688
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Aron Budea <aron.budea at collabora.com>
diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx
index f2b008ea6fd2..be891ef18423 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