ntfswipe.c: Big endian fix for wipe_mft.

The 'bytes_in_use' member was not byteswapped after being read from the
buffer and used in a calculation.
edge.strict_endians
Erik Larsson 2012-01-09 03:54:11 +01:00
parent 887ccbf868
commit 7e2ee67097
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ static s64 wipe_mft(ntfs_volume *vol, int byte, enum action act)
}
// We know that the end marker will only take 4 bytes
size = *((u32*) (buffer + 0x18)) - 4;
size = le32_to_cpu(*((u32*) (buffer + 0x18))) - 4;
if (act == act_info) {
//ntfs_log_info("mft %d\n", size);