summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-10-20 18:34:58 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-20 22:56:34 -0700
commit147a1ab03599c21c9e5972739c460fd2635c0c02 (patch)
tree8a06f25b30584eaa965199894800d1ce3373ae1c
parentb7080d851630606815a399a162c5b20f2907f9e0 (diff)
downloadgit-147a1ab03599c21c9e5972739c460fd2635c0c02.tar.xz
Fix git-daemon argument-parsing bug
Fix stupid bug in parsing the --init-timeout option. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 693af515d3..8bb4d913bd 100644
--- a/daemon.c
+++ b/daemon.c
@@ -562,7 +562,7 @@ int main(int argc, char **argv)
if (!strncmp(arg, "--timeout=", 10)) {
timeout = atoi(arg+10);
}
- if (!strncmp(arg, "--init-timeout=", 10)) {
+ if (!strncmp(arg, "--init-timeout=", 15)) {
init_timeout = atoi(arg+15);
}
if (!strcmp(arg, "--")) {