mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
chg: lua - Swapping param order to make it more clear. From (length,offset) to (offset,length)
This commit is contained in:
parent
e26e9aa710
commit
b3ebf73ecc
1 changed files with 4 additions and 4 deletions
|
@ -66,8 +66,8 @@ static int l_GetFromBigBuf(lua_State *L){
|
|||
return 2; // two return values
|
||||
}
|
||||
if (n >= 2) {
|
||||
len = luaL_checknumber(L, 1);
|
||||
startindex = luaL_checknumber(L, 2);
|
||||
startindex = luaL_checknumber(L, 1);
|
||||
len = luaL_checknumber(L, 2);
|
||||
}
|
||||
|
||||
uint8_t *data = calloc(len, sizeof(uint8_t));
|
||||
|
@ -115,8 +115,8 @@ static int l_GetFromFlashMem(lua_State *L){
|
|||
return 2;
|
||||
}
|
||||
if (n >= 2) {
|
||||
len = luaL_checknumber(L, 1);
|
||||
startindex = luaL_checknumber(L, 2);
|
||||
startindex = luaL_checknumber(L, 1);
|
||||
len = luaL_checknumber(L, 2);
|
||||
}
|
||||
|
||||
uint8_t *data = calloc(len, sizeof(uint8_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue