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
@@ -1952,7 +1952,7 @@ static int CmdT55xxDangerousRaw(const char *Cmd) {
|
||||
ng.bitlen = 0;
|
||||
memset(ng.data, 0x00, sizeof(ng.data));
|
||||
|
||||
uint8_t bin[128] = {0};
|
||||
uint8_t bin[129] = {0};
|
||||
int bin_len = sizeof(bin) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated
|
||||
CLIGetStrWithReturn(ctx, 1, bin, &bin_len);
|
||||
|
||||
|
||||
Reference in new issue
Block a user