Subject: [PATCH] Fix git-daemon argument-parsing bug

From: "H. Peter Anvin" <[email-masked]>
Date: Thu, 20 Oct 2005 18:34:58 -0700

Fix stupid bug in parsing the --init-timeout option.

Signed-off-by: H. Peter Anvin <[email-masked]>
diff --git a/daemon.c b/daemon.c
--- 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, "--")) {