Skip to content

Commit

Permalink
fix RfidResearchGroup#2288 bad comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Feb 12, 2024
1 parent d58a9ad commit 378e3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ int loadFileNFC_safe(const char *preferredName, void *data, size_t maxdatalen, s
continue;
}

if (((pageno * MFU_BLOCK_SIZE) + MFU_BLOCK_SIZE) >= maxdatalen) {
if (((pageno * MFU_BLOCK_SIZE) + MFU_BLOCK_SIZE) > maxdatalen) {
continue;
}

Expand All @@ -1245,7 +1245,7 @@ int loadFileNFC_safe(const char *preferredName, void *data, size_t maxdatalen, s
continue;
}

if (((blockno * MFBLOCK_SIZE) + MFBLOCK_SIZE) >= maxdatalen) {
if (((blockno * MFBLOCK_SIZE) + MFBLOCK_SIZE) > maxdatalen) {
continue;
}

Expand Down

0 comments on commit 378e3cd

Please sign in to comment.