This commit is contained in:
Philippe Teuwen 2019-04-29 22:41:28 +02:00
commit 56f92348ea
8 changed files with 58 additions and 58 deletions

View file

@ -698,7 +698,7 @@ static int ndef_print_CC(uint8_t *data) {
uint8_t major = (data[1] & 0xC0) >> 6;
char wStr[50];
switch ( write ) {
switch (write) {
case 0:
sprintf(wStr, "Write access granted without any security");
break;
@ -713,7 +713,7 @@ static int ndef_print_CC(uint8_t *data) {
break;
}
char rStr[46];
switch ( read ) {
switch (read) {
case 0:
sprintf(rStr, "Read access granted without any security");
break;

View file

@ -228,7 +228,7 @@ static int ndefDecodePayload(NDEFHeader_t *ndef) {
PrintAndLogEx(NORMAL
, "\turi : %s%.*s"
, (ndef->Payload[0] <= 0x23 ? URI_s[ndef->Payload[0]] : "[err]")
, ndef->PayloadLen-1
, ndef->PayloadLen - 1
, &ndef->Payload[1]
);
}

View file

@ -973,7 +973,7 @@ static int l_ndefparse(lua_State *L) {
// data
const char *p_data = luaL_checklstring(L, 3, &size);
if (size) {
if (size > (datalen << 1) )
if (size > (datalen << 1))
size = (datalen << 1);
uint32_t tmp;
@ -1048,7 +1048,7 @@ int set_pm3_libraries(lua_State *L) {
{"keygen_algo_d", l_keygen_algoD},
{"t55xx_readblock", l_T55xx_readblock},
{"t55xx_detect", l_T55xx_detect},
{"ndefparse" , l_ndefparse},
{"ndefparse", l_ndefparse},
{NULL, NULL}
};