# [PATCH] Fix git-daemon argument-parsing bug

1 messages from 2005-10-21 to 2005-10-21. Participants: H. Peter Anvin.
Thread: https://gitlist.dev/t/2172

## H. Peter Anvin, 2005-10-21 01:34

Subject: [PATCH] Fix git-daemon argument-parsing bug
Message-ID: <435845C2.3010504@zytor.com>
URL: https://gitlist.dev/e/435845C2.3010504%40zytor.com

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

Signed-off-by: H. Peter Anvin <hpa@zytor.com>


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, "--")) {

```
