From 7f8c722b3dc22fcff2667042c463d299f0141f9e Mon Sep 17 00:00:00 2001 From: Noi Date: Thu, 21 May 2020 21:18:54 -0700 Subject: [PATCH] Fix array copy error --- UserInterface/ManagerCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UserInterface/ManagerCommands.cs b/UserInterface/ManagerCommands.cs index 5400204..d9195a4 100644 --- a/UserInterface/ManagerCommands.cs +++ b/UserInterface/ManagerCommands.cs @@ -70,7 +70,7 @@ namespace BirthdayBot.UserInterface } // Subcommands get a subset of the parameters, to make things a little easier. - var confparam = new string[param.Length - 2]; // subtract one extra??? TODO investigate after port to C# + var confparam = new string[param.Length - 1]; Array.Copy(param, 1, confparam, 0, param.Length - 1); if (_subcommands.TryGetValue(confparam[0], out ConfigSubcommand h))