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
@@ -1259,7 +1259,7 @@ static int CmdPCSC(const char *Cmd) {
|
||||
strcpy((char *) host, "localhost");
|
||||
}
|
||||
|
||||
uint8_t port[6] = {0};
|
||||
uint8_t port[7] = {0};
|
||||
int portLen = sizeof(port) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated
|
||||
CLIGetStrWithReturn(ctx, 2, port, &portLen);
|
||||
if (portLen == 0) {
|
||||
|
||||
Reference in new issue
Block a user