From a6cd1084c3b0ff4f4319fdcc04f07c569d7ec3e0 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Fri, 21 May 2004 21:21:38 +0000 Subject: [PATCH] Do not use the ++ operator on a variable when it is being passed as a parameter to a macro in libntfs/unistr.c. (Pete Curran, Yuval) (Logical change 1.393) --- libntfs/unistr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libntfs/unistr.c b/libntfs/unistr.c index 8122d873..f14c8af2 100644 --- a/libntfs/unistr.c +++ b/libntfs/unistr.c @@ -120,8 +120,10 @@ int ntfs_names_collate(const ntfschar *name1, const u32 name1_len, #endif for (cnt = 0; cnt < min(name1_len, name2_len); ++cnt) { - c1 = le16_to_cpu(*name1++); - c2 = le16_to_cpu(*name2++); + c1 = le16_to_cpu(*name1); + name1++; + c2 = le16_to_cpu(*name2); + name2++; if (ic) { if (c1 < upcase_len) c1 = le16_to_cpu(upcase[c1]);