Fix git-daemon argument-parsing bug
authorH. Peter Anvin <hpa@zytor.com>
Fri, 21 Oct 2005 01:34:58 +0000 (18:34 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 21 Oct 2005 05:46:03 +0000 (22:46 -0700)
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>
daemon.c

index b3bcd7a60a9281e16a15d4e8f73bb73c73fd5c7f..2b56d7d225a703b6a206ad949a87765dff147760 100644 (file)
--- 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, "--")) {