From: Alan T. DeKok Date: Wed, 13 Dec 2017 21:16:52 +0000 (-0500) Subject: strlcpy(). CID #1426109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef5e920e093bdabd493ccbe4e3c7e372f8ca289e;p=thirdparty%2Ffreeradius-server.git strlcpy(). CID #1426109 --- diff --git a/src/main/unit_test_attribute.c b/src/main/unit_test_attribute.c index 14512193a74..72f246439dc 100644 --- a/src/main/unit_test_attribute.c +++ b/src/main/unit_test_attribute.c @@ -599,7 +599,7 @@ static size_t load_proto_library(char const *proto_name) return -1; } - strcpy(proto_name_prev, proto_name); + strlcpy(proto_name_prev, proto_name, sizeof(proto_name_prev)); } return strlen(proto_name);