mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-11 07:23:40 +08:00
fix coverity
This commit is contained in:
parent
c85962f815
commit
4950098042
1 changed files with 2 additions and 2 deletions
|
@ -1139,8 +1139,8 @@ static int l_em4x50_read(lua_State *L) {
|
|||
uint32_t addr = 0;
|
||||
sscanf(p_addr, "%u", &addr);
|
||||
|
||||
if (addr > 33)
|
||||
return returnToLuaWithError(L, "Address out-of-range (0..33) got %zu", addr);
|
||||
if (addr > 31)
|
||||
return returnToLuaWithError(L, "Address out-of-range (0..31) got %u", addr);
|
||||
|
||||
// setting up structures
|
||||
em4x50_data_t etd;
|
||||
|
|
Loading…
Reference in a new issue