dtimsstart: Coverity fixes

This commit is contained in:
Peter Howkins
2018-04-28 21:44:27 +01:00
parent 55c120b287
commit 62ee95bce2
7 changed files with 15 additions and 19 deletions

View File

@@ -166,7 +166,7 @@ int read_cmd_conf()
if (!(path = getenv("DTIMS_STARTCONF")) || !*path) {
if ((p = getenv("DTIMS_CONFDIR")) && *p)
conf_dir = p;
sprintf(path = buf, "%s/%s", conf_dir, DTIMS_CONFFILE);
snprintf(path = buf, sizeof(buf), "%s/%s", conf_dir, DTIMS_CONFFILE);
}
}
DPR3(("read_cmd_conf(): path=%s\n", path));