Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mr/worktree-list'
[gitweb.git]
/
builtin
/
gc.c
diff --git
a/builtin/gc.c
b/builtin/gc.c
index 9ff0204940640d72bff2cfc95f084be371d6e80e..eeeb21b1c46dae897ec9db51e58f8d15fc4f915e 100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-217,7
+217,7
@@
static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
return NULL;
if (gethostname(my_host, sizeof(my_host)))
-
strcpy(my_host
, "unknown");
+
xsnprintf(my_host, sizeof(my_host)
, "unknown");
pidfile_path = git_pathdup("gc.pid");
fd = hold_lock_file_for_update(&lock, pidfile_path,