From adb78bcc05b994a0a6be96c24d2a45d845b50c32 Mon Sep 17 00:00:00 2001 From: Ben51Degrees Date: Fri, 3 Feb 2023 15:44:45 +0000 Subject: [PATCH 1/2] BUG: Address a compile time warning that is shown in GCC 10+. Using `memcpy` has the same effect, but doesn't care about null terminators. #5375 --- headers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers.c b/headers.c index 29c6ba7b..3b1f4e48 100644 --- a/headers.c +++ b/headers.c @@ -174,7 +174,7 @@ static bool copyHeaderName(Header* header, const char* source, size_t length) { Free(name); return false; } - header->name = strncpy(name, source, length); + header->name = memcpy(name, source, length); if (header->name == NULL) { Free(name); return false; From 89ffc5622c5b6064ae178661c08b8063af115c7a Mon Sep 17 00:00:00 2001 From: CIUser Date: Sat, 4 Feb 2023 15:10:17 +0000 Subject: [PATCH 2/2] REF: Update submodules references. --- ci/common-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/common-ci b/ci/common-ci index 0d579c44..72cfd480 160000 --- a/ci/common-ci +++ b/ci/common-ci @@ -1 +1 @@ -Subproject commit 0d579c4495061bad8e6de797012d2897a51c4b26 +Subproject commit 72cfd48069b0f12f90b890cae11984aa458e87dd