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

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

parent a9137567
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -172,7 +172,7 @@ void run_hook(const char *hook_path)


    utlog(LOG_NOTICE, "  Run custom hook: %s\n", 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];
    char cmd[len];
    snprintf(cmd, len, "sh %s 2>&1 1>/dev/null &", hook_path);
    snprintf(cmd, len, "sh %s 2>&1 1>/dev/null &", hook_path);