]> git.ipfire.org Git - thirdparty/ipset.git/blobdiff - lib/data.c
Workaround misleading -Wstringop-truncation warning
[thirdparty/ipset.git] / lib / data.c
index 72f1330a8205d84c2a37292de34dd081702a6dbd..c05b20144cdad87573f6703f7ceb4021c790d468 100644 (file)
@@ -111,7 +111,7 @@ ipset_strlcpy(char *dst, const char *src, size_t len)
        assert(dst);
        assert(src);
 
-       strncpy(dst, src, len);
+       memcpy(dst, src, len);
        dst[len - 1] = '\0';
 }