help.c: Add support for htmldir relative to git_exec_path()
[gitweb.git] / builtin-mailinfo.c
index e1e094f29ef3e7f7af3b0a20047b67a70c8c3e18..fa6e8f90a4d54eb07f2af80620e35e617c94d605 100644 (file)
@@ -812,6 +812,7 @@ static void handle_body(void)
                                              np - newline);
                        if (!handle_boundary())
                                return;
+                       len = strlen(line);
                }
 
                /* Unwrap transfer encoding */
@@ -968,7 +969,7 @@ int cmd_mailinfo(int argc, const char **argv, const char *prefix)
        /* NEEDSWORK: might want to do the optional .git/ directory
         * discovery
         */
-       git_config(git_default_config);
+       git_config(git_default_config, NULL);
 
        def_charset = (git_commit_encoding ? git_commit_encoding : "utf-8");
        metainfo_charset = def_charset;