You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Update lzcomp
This commit is contained in:
@@ -101,7 +101,7 @@ struct command pick_copy_for_pass (const unsigned char * data, const unsigned ch
|
||||
current = buffer + refpos - (length - 3);
|
||||
else
|
||||
current = reference + refpos;
|
||||
if (memcmp(data + position, current, 4)) continue;
|
||||
if (memcmp(data + position, current, ((position + 4) > length) ? length - position : 4)) continue;
|
||||
for (count = 4; (count < (length - position)) && (count < (length - refpos)); count ++) if (data[position + count] != current[count]) break;
|
||||
if (count > (length - refpos)) count = length - refpos;
|
||||
if (count > (length - position)) count = length - position;
|
||||
|
||||
Reference in New Issue
Block a user