tools/source/misc/json_writer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 18b9f927a00b1cafecd450bbe276bbbfe009b7f3
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun Jun 21 23:09:35 2020 +0200
Commit:     Stephan Bergmann <sberg...@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 <sberg...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to