From b53ca57bad4f62422f9cf4b62d54c6f508ba13cb Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 5 Jun 2017 10:38:43 -0400 Subject: Fixed out of bounds array index (#6576) --- app/command_shortcuts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/command_shortcuts.go b/app/command_shortcuts.go index 547d8155f..9eefb698e 100644 --- a/app/command_shortcuts.go +++ b/app/command_shortcuts.go @@ -37,7 +37,7 @@ func (me *ShortcutsProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } func (me *ShortcutsProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - shortcutIds := [29]string{ + shortcutIds := [...]string{ "api.command_shortcuts.header", // Nav shortcuts "api.command_shortcuts.nav.header", -- cgit v1.2.3-1-g7c22