aboutsummaryrefslogtreecommitdiff
path: root/daemon.c
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:46:03 -0700
commit54e31a205c63d8bc8cd3dcf6956f81d3b968ea48 (patch)
tree26fc0da81cf949c3270ee38cc4a53613b48efd88 /daemon.c
parent2707da9c081f0ec5ada43de1006abaf6a674984c (diff)
downloadgit-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.tar.gz
git-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.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>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index b3bcd7a60..2b56d7d22 100644
--- a/daemon.c
+++ b/daemon.c
@@ -612,7 +612,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, "--")) {