mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
fix length test
thanks @pwpiwi for catching what i missed.
This commit is contained in:
parent
e8647c5764
commit
90e9da2566
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ void setDemodBuf(uint8_t *buff, size_t size, size_t startIdx)
|
|||
if (buff == NULL)
|
||||
return;
|
||||
|
||||
if ( size + startIdx >= MAX_DEMOD_BUF_LEN)
|
||||
size = MAX_DEMOD_BUF_LEN;
|
||||
if ( size > MAX_DEMOD_BUF_LEN - startIdx)
|
||||
size = MAX_DEMOD_BUF_LEN - startIdx;
|
||||
|
||||
size_t i = 0;
|
||||
for (; i < size; i++){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue