]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No strlcpy in the make framework
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 11 Dec 2022 23:14:22 +0000 (17:14 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 11 Dec 2022 23:14:22 +0000 (17:14 -0600)
scripts/build/log.c

index 35a49ea8d7f0e9dfe9ef768ab3db9a7a3374d372..93e1bf7f205c9168001aebe311142fe14de61cfa 100644 (file)
@@ -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++ = ' ';