fix string handling and styles
This commit is contained in:
1 parent
307012606b
commit
9ddd833cba
10 files changed
+64
-37
No files matched your search
@@ -236,7 +236,7 @@ static int CmdPacClone(const char *Cmd) {
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
|
||||
uint8_t cnstr[9] = {0};
|
||||
uint8_t cnstr[10] = {0};
|
||||
int cnlen = sizeof(cnstr) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated
|
||||
memset(cnstr, 0x00, sizeof(cnstr));
|
||||
CLIGetStrWithReturn(ctx, 1, cnstr, &cnlen);
|
||||
|
||||
Reference in new issue
Block a user