]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix arg order
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 12 Dec 2022 05:50:47 +0000 (23:50 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 12 Dec 2022 05:50:47 +0000 (23:50 -0600)
scripts/build/log.c

index 93e1bf7f205c9168001aebe311142fe14de61cfa..e1089f5b0b22a379853b3b192b8820b8279019e3 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));
 
-       strncpy(p, (end - p), log_keyword);
+       strncpy(p, log_keyword, (end - p));
        p += strlen(p);
        *p++ = ' ';