Fix git-daemon argument-parsing bug
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>
H. Peter Anvin committed
Oct 20, 2005 at 18:34 UTC
54e31a205c63d8bc8cd3dcf6956f81d3b968ea48
1 file changed
+1
-1
daemon.c
+1
-1
@@ -612,7 +612,7 @@ int main(int argc, char **argv)
612
if (!strncmp(arg, "--timeout=", 10)) {
613
timeout = atoi(arg+10);
614
}
615
- if (!strncmp(arg, "--init-timeout=", 10)) {
615
+ if (!strncmp(arg, "--init-timeout=", 15)) {
616
init_timeout = atoi(arg+15);
617
}
618
if (!strcmp(arg, "--")) {