OSDN Git Service

ntfstruncate.c: Fix mixed endianness usage of variable 'u'.
authorErik Larsson <mechie@users.sourceforge.net>
Tue, 26 Jan 2016 09:03:36 +0000 (10:03 +0100)
committerErik Larsson <mechie@users.sourceforge.net>
Tue, 26 Jan 2016 09:03:36 +0000 (10:03 +0100)
commitefa876d31becaf8fb55c314a36ecc2618896bb6f
tree195872cffe6170fdc5f98d83dc2b79ca66ec16e6
parent02ce4947dfdb5aa9ed936f8187faa47f506d4d20
ntfstruncate.c: Fix mixed endianness usage of variable 'u'.

In 'dump_attr_record' the variable 'u' was first used to store a
CPU-endian 32-bit value, and then to store a 16-bit little-endian value.
This is bad practice and results in a hard error when strict endian type
checking is used.

Fixed by storing the 16-bit little-endian flags value in a new variable
'flags'.
ntfsprogs/ntfstruncate.c