You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/05/29 13:29:16 UTC

[GitHub] rymanluk closed pull request #1147: shell: Fix crash on 'help' in shell/compat

rymanluk closed pull request #1147: shell: Fix crash on 'help' in shell/compat
URL: https://github.com/apache/mynewt-core/pull/1147
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sys/shell/src/shell.c b/sys/shell/src/shell.c
index d95ef4b479..41b5033046 100644
--- a/sys/shell/src/shell.c
+++ b/sys/shell/src/shell.c
@@ -902,7 +902,7 @@ shell_register(const char *module_name, const struct shell_cmd *commands)
 
 #if MYNEWT_VAL(SHELL_COMPAT)
 #define SHELL_COMPAT_MODULE_NAME "compat"
-static struct shell_cmd compat_commands[MYNEWT_VAL(SHELL_MAX_COMPAT_COMMANDS)];
+static struct shell_cmd compat_commands[MYNEWT_VAL(SHELL_MAX_COMPAT_COMMANDS) + 1];
 static int num_compat_commands;
 static int module_registered;
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services