summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-10-21 01:34:58 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-21 05:46:03 (GMT)
commit54e31a205c63d8bc8cd3dcf6956f81d3b968ea48 (patch)
tree26fc0da81cf949c3270ee38cc4a53613b48efd88 /daemon.c
parent2707da9c081f0ec5ada43de1006abaf6a674984c (diff)
downloadgit-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.zip
git-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.tar.gz
git-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.tar.bz2
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 b3bcd7a..2b56d7d 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, "--")) {