From: Arran Cudbard-Bell Date: Sun, 11 Dec 2022 23:14:22 +0000 (-0600) Subject: No strlcpy in the make framework X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5b89446e585ddcc64b2ef254a2acdfb268c29f4;p=thirdparty%2Ffreeradius-server.git No strlcpy in the make framework --- diff --git a/scripts/build/log.c b/scripts/build/log.c index 35a49ea8d7f..93e1bf7f205 100644 --- a/scripts/build/log.c +++ b/scripts/build/log.c @@ -38,7 +38,7 @@ void _make_vlog(char const *log_keyword, char const *file, int line, char const char buffer[256]; char *p = buffer, *end = (p + (sizeof(buffer) - 1)); - strlcpy(p, log_keyword, (end - p) + 1); + strncpy(p, (end - p), log_keyword); p += strlen(p); *p++ = ' ';