server-info: throw away T computation as well.
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index 619f25acf50154a2b1f4e5e2522b89416d1286f1..ee5048aaaa2f814f00a6a3fb937bf0d15e46f50c 100644 (file)
--- a/git.c
+++ b/git.c
@@ -14,7 +14,7 @@
 #endif
 
 #ifdef NO_SETENV
-extern int gitsetenv(char *name, char *value, int overwrite);
+extern int gitsetenv(const char *, const char *, int);
 #endif
 
 static const char git_usage[] =
@@ -192,7 +192,6 @@ static void prepend_to_path(const char *dir, int len)
        path_len = len + strlen(old_path) + 1;
 
        path = malloc(path_len + 1);
-       path[path_len + 1] = '\0';
 
        memcpy(path, dir, len);
        path[len] = ':';
@@ -290,7 +289,7 @@ int main(int argc, char **argv, char **envp)
        len += snprintf(git_command + len, sizeof(git_command) - len,
                        "/git-%s", argv[i]);
        if (sizeof(git_command) <= len) {
-               fprintf(stderr, "git: command name given is too long (%d)\n", len);
+               fprintf(stderr, "git: command name given is too long.\n");
                exit(1);
        }