Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jul 26, 2024
1 parent 266d43e commit 0f19a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/popcorn/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static int myIoRead(int fd, unsigned char *buf, int size)
goto exit;
}

if (has_config /*&& fd == pbp_fd*/ && pos >= config_offset && pos+size <= config_offset+config_size){
if (has_config /*&& fd == pbp_fd*/ && pos > config_offset && pos+size < config_offset+config_size){
// trying to read POPS config
int relative_offset = pos - config_offset;
memcpy(buf, (u8*)custom_config+relative_offset, size);
Expand Down

0 comments on commit 0f19a44

Please sign in to comment.