From: Miroslav Lichvar Date: Wed, 10 Jun 2020 13:54:11 +0000 (+0200) Subject: conf: fix missing format string X-Git-Tag: 4.0-pre3~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46714fec2de0253e00467e830ada44fbaebbf482;p=thirdparty%2Fchrony.git conf: fix missing format string Fixes: 519796de3756 ("conf: add sourcedirs directive") --- diff --git a/conf.c b/conf.c index 406829f4..cd775bfe 100644 --- a/conf.c +++ b/conf.c @@ -1670,7 +1670,7 @@ reload_source_dirs(void) /* Load the sources again */ ARR_SetSize(ntp_sources, 0); for (i = 0; i < ARR_GetSize(ntp_source_dirs); i++) { - if (snprintf(buf, sizeof (buf), + if (snprintf(buf, sizeof (buf), "%s", *(char **)ARR_GetElement(ntp_source_dirs, i)) >= sizeof (buf)) assert(0); search_dirs(buf, ".sources", load_source_file);