Commit 3f968431 authored by Hermann Mayer's avatar Hermann Mayer

[Binary] Fixed a too small buffer size for the custom hooks path. (See #16)

parent a9137567
......@@ -172,7 +172,7 @@ void run_hook(const char *hook_path)
utlog(LOG_NOTICE, " Run custom hook: %s\n", hook_path);
int len = strlen(hook_path) + 20;
int len = strlen(hook_path) + 30;
char cmd[len];
snprintf(cmd, len, "sh %s 2>&1 1>/dev/null &", hook_path);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment