From 22d82434ea2a0c40b1f5645162ea4809a3a09cb8 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sun, 29 Mar 2020 19:13:05 +0300 Subject: [PATCH] fix off-by-one error (#3) --- cmd/xcaddy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/xcaddy/main.go b/cmd/xcaddy/main.go index f9be897..9b4cd02 100644 --- a/cmd/xcaddy/main.go +++ b/cmd/xcaddy/main.go @@ -69,7 +69,7 @@ func runBuild(args []string) error { return fmt.Errorf("expected value after --output flag") } i++ - output = args[i+1] + output = args[i] default: if caddyVersion != "" {