patch-2.4.9 linux/fs/ntfs/unistr.c

Next file: linux/fs/ntfs/util.c
Previous file: linux/fs/ntfs/support.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/fs/ntfs/unistr.c linux/fs/ntfs/unistr.c
@@ -96,7 +96,7 @@
 	__u32 cnt;
 	wchar_t c1, c2;
 
-	for (cnt = 0; cnt < min(name1_len, name2_len); ++cnt)
+	for (cnt = 0; cnt < min(unsigned int, name1_len, name2_len); ++cnt)
 	{
 		c1 = le16_to_cpu(*name1++);
 		c2 = le16_to_cpu(*name2++);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)