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.8g~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=147a1ab03599c21c9e5972739c460fd2635c0c02;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 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, "--")) {