Skip to contentSkip to conversation

befs: nls fix

PATCH New Sergey S. Kostyliov 1 participant 1 message May 22, 2004 Befs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 befs: nls fix

[PATCH] befs: nls fix

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

===== fs/befs/linuxvfs.c 1.20 vs edited =====

fs/befs/linuxvfs.c +1 -1
@@ -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;
 		}