From e030b6985f2480da454da92f6b8c69ed95c08506 Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 25 Apr 2009 13:13:29 +0000 Subject: [PATCH] ntfs_upcase_table_build: fix endianness (Jean-Pierre Andre, Szabolcs Szakacsits) --- libntfs-3g/unistr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index e3dac625..b1263925 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -1013,6 +1013,8 @@ void ntfs_upcase_table_build(ntfschar *uc, u32 uc_len) uc[i + 1]--; for (r = 0; uc_byte_table[r][0]; r++) uc[uc_byte_table[r][0]] = uc_byte_table[r][1]; + for (i = 0; (u32)i < uc_len; i++) + uc[i] = cpu_to_le16(uc[i]); } /**