mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Fix printf style function missing argument to %s
This is very likely the root cause of issue #236, let's see. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
4c1fc2410e
commit
bc2ffbc767
1 file changed
+1
-1
+1
-1
@@ -991,7 +991,7 @@ static void parse_killdelay(svc_t *svc, char *delay)
|
|||||||
static void parse_script(char *type, char *script, char *buf, size_t len)
|
static void parse_script(char *type, char *script, char *buf, size_t len)
|
||||||
{
|
{
|
||||||
if (access(script, X_OK))
|
if (access(script, X_OK))
|
||||||
logit(LOG_WARNING, "%s: %s:%s is missing or not executable, skipping.", type, script);
|
logit(LOG_WARNING, "%s:%s is missing or not executable, skipping.", type, script);
|
||||||
else
|
else
|
||||||
strlcpy(buf, script, len);
|
strlcpy(buf, script, len);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user