From: H. Peter Anvin Date: Fri, 21 Oct 2005 01:34:58 +0000 (-0700) Subject: Fix git-daemon argument-parsing bug X-Git-Tag: v0.99.9~70 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54e31a205c63d8bc8cd3dcf6956f81d3b968ea48;p=git.git 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 --- 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, "--")) {