Bluetooth: Mesh: Shell: Fix cfgCli appkey arg conv
Rectifies incorrect conversion of appkey string in config client
appkey add command.
Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
diff --git a/subsys/bluetooth/mesh/shell/cfg_cli.c b/subsys/bluetooth/mesh/shell/cfg_cli.c
index 1ae5278..0e266e9 100644
--- a/subsys/bluetooth/mesh/shell/cfg_cli.c
+++ b/subsys/bluetooth/mesh/shell/cfg_cli.c
@@ -557,7 +557,7 @@
size_t len;
len = hex2bin(argv[3], strlen(argv[3]), key_val, sizeof(key_val));
- (void)memset(key_val, 0, sizeof(key_val) - len);
+ (void)memset(key_val + len, 0, sizeof(key_val) - len);
} else {
memcpy(key_val, default_key, sizeof(key_val));
}