Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t9107-git-svn-migrate.sh: use the $( ... ) construct for command substitution
[gitweb.git]
/
builtin
/
gc.c
diff --git
a/builtin/gc.c
b/builtin/gc.c
index 42258fe3481dea642e85d8eb97ff175725420121..c583aad6ec2896c8a6ad3b35671e92a3c0478bcd 100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-233,7
+233,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,