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)
edge.strict_endians
cantab.net!aia21 2004-05-21 21:21:38 +00:00
parent cca66954fd
commit a6cd1084c3
1 changed files with 4 additions and 2 deletions

View File

@ -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]);