From 54e31a205c63d8bc8cd3dcf6956f81d3b968ea48 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 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, "--")) { -- 2.30.2