mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:35:06 -05:00
conf: fix missing format string
Fixes: 519796de37 ("conf: add sourcedirs directive")
This commit is contained in:
2
conf.c
2
conf.c
@@ -1670,7 +1670,7 @@ reload_source_dirs(void)
|
|||||||
/* Load the sources again */
|
/* Load the sources again */
|
||||||
ARR_SetSize(ntp_sources, 0);
|
ARR_SetSize(ntp_sources, 0);
|
||||||
for (i = 0; i < ARR_GetSize(ntp_source_dirs); i++) {
|
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))
|
*(char **)ARR_GetElement(ntp_source_dirs, i)) >= sizeof (buf))
|
||||||
assert(0);
|
assert(0);
|
||||||
search_dirs(buf, ".sources", load_source_file);
|
search_dirs(buf, ".sources", load_source_file);
|
||||||
|
|||||||
Reference in New Issue
Block a user