From: Arran Cudbard-Bell Date: Mon, 12 Dec 2022 05:50:47 +0000 (-0600) Subject: Fix arg order X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f033329ec4810f1d8832e6873e088a30a051bc9;p=thirdparty%2Ffreeradius-server.git Fix arg order --- diff --git a/scripts/build/log.c b/scripts/build/log.c index 93e1bf7f205..e1089f5b0b2 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)); - strncpy(p, (end - p), log_keyword); + strncpy(p, log_keyword, (end - p)); p += strlen(p); *p++ = ' ';