[PATCH] befs: nls fix

From: Sergey S. Kostyliov
Date: Sat May 22 2004 - 15:10:46 EST


[PATCH] befs: nls fix

Fix nls support for character sets with character width large than 1.

===== fs/befs/linuxvfs.c 1.20 vs edited =====
--- 1.20/fs/befs/linuxvfs.c Sat May 15 06:00:21 2004
+++ edited/fs/befs/linuxvfs.c Sat May 22 23:38:50 2004
@@ -571,7 +571,7 @@
}

/* convert from Unicode to nls */
- unilen = nls->uni2char(uni, &result[o], 1);
+ unilen = nls->uni2char(uni, &result[o], in_len - o);
if (unilen < 0) {
goto conv_err;
}



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/