You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/08 21:20:09 UTC
[22/50] [abbrv] incubator-mynewt-core git commit: config;
allow CLI to display max size variable value.
config; allow CLI to display max size variable value.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/6b829a05
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/6b829a05
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/6b829a05
Branch: refs/heads/master
Commit: 6b829a0599587c9caacc082c037708e654715c1a
Parents: cd0793a
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jun 24 15:24:54 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jun 24 15:24:54 2016 -0700
----------------------------------------------------------------------
sys/config/src/config_cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6b829a05/sys/config/src/config_cli.c
----------------------------------------------------------------------
diff --git a/sys/config/src/config_cli.c b/sys/config/src/config_cli.c
index 50cfd23..7c39598 100644
--- a/sys/config/src/config_cli.c
+++ b/sys/config/src/config_cli.c
@@ -74,7 +74,7 @@ shell_conf_command(int argc, char **argv)
{
char *name = NULL;
char *val = NULL;
- char tmp_buf[16];
+ char tmp_buf[CONF_MAX_VAL_LEN + 1];
int rc;
switch (argc) {