fix compilation errors for strlen call that doesnt like uint8_t arrays
This commit is contained in:
1 parent
8565781f66
commit
0a42e92d11
1 file changed
+1
-1
@@ -8570,7 +8570,7 @@ static int CmdHFMFHidEncode(const char *Cmd) {
|
|||||||
if (bin_len) {
|
if (bin_len) {
|
||||||
char mfcbin[121] = {0};
|
char mfcbin[121] = {0};
|
||||||
mfcbin[0] = '1';
|
mfcbin[0] = '1';
|
||||||
memcpy(mfcbin + 1, bin, strlen(bin));
|
memcpy(mfcbin + 1, bin, bin_len);
|
||||||
|
|
||||||
size_t hexlen = 0;
|
size_t hexlen = 0;
|
||||||
uint8_t hex[15] = {0};
|
uint8_t hex[15] = {0};
|
||||||
|
|||||||
Reference in new issue
Block a user