From 147a1ab03599c21c9e5972739c460fd2635c0c02 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 20 Oct 2005 18:34:58 -0700 Subject: [PATCH] Fix git-daemon argument-parsing bug Fix stupid bug in parsing the --init-timeout option. Signed-off-by: H. Peter Anvin Signed-off-by: Junio C Hamano --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index 693af515d..8bb4d913b 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, "--")) { -- 2.26.2