Skip to content

Commit

Permalink
read_file: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Mar 19, 2023
1 parent d4a87fd commit 686868d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ntfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ static EFI_STATUS read_file(inode& ino, UINTN* BufferSize, VOID* Buffer) {
}

if (valid_end < end)
memset((uint8_t*)Buffer + valid_end - start, 0, end - valid_end - start);
memset((uint8_t*)Buffer + valid_end - start, 0, end - valid_end);
}

ino.position = end;
Expand Down

0 comments on commit 686868d

Please sign in to comment.