#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[] =
path_len = len + strlen(old_path) + 1;
path = malloc(path_len + 1);
- path[path_len + 1] = '\0';
memcpy(path, dir, len);
path[len] = ':';
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);
}