From b6a25c8a83e76a161a968ebf66daaa9be339e37d Mon Sep 17 00:00:00 2001 From: George Baltz N3GB Date: Fri, 13 Mar 2026 05:13:49 -0400 Subject: [PATCH] Avoid warnings from gcc-16 gcc-16 adds warnings about using strncpy() to copy into a buffer with size equal to the max count, possibly creating an unterminated string. Since we don't care about the contents here and both buffers are the same size, just do a byte copy. --- tests/rigctl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 5c30c1439..aa515db91 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1865,7 +1865,7 @@ readline_repeat: // we need to copy client_version to our thread in case there are multiple client versions // client_version is used to determine any backward compatibility requirements or problems - strncpy(client_version, rs->client_version, sizeof(client_version)); + memcpy(client_version, rs->client_version, sizeof(client_version)); }