Check size of path buffer before writing into it
[gitweb.git] / builtin-help.c
index e1eba778a526f500b0a65a6b112e468f04a3f869..e1ade8edd3c4f05771b286e9f9a6657ff05c7eb0 100644 (file)
@@ -372,6 +372,7 @@ static void show_info_page(const char *git_cmd)
        const char *page = cmd_to_page(git_cmd);
        setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
        execlp("info", "info", "gitman", page, NULL);
+       die("no info viewer handled the request");
 }
 
 static void get_html_page_path(struct strbuf *page_path, const char *page)