Fixed out of bounds array index (#6576)

This commit is contained in:
Harrison Healey
2017-06-05 07:38:43 -07:00
committed by Christopher Speller
parent 7be7c67757
commit b53ca57bad
+1 -1
View File
@@ -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",