Commit ff88d7da authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] befs: nls fix

From: "Sergey S. Kostyliov" <rathamahata@php4.ru>

Fix nls support for character sets with character width large than 1.
parent 04af400e
...@@ -571,7 +571,7 @@ befs_utf2nls(struct super_block *sb, const char *in, ...@@ -571,7 +571,7 @@ befs_utf2nls(struct super_block *sb, const char *in,
} }
/* convert from Unicode to nls */ /* convert from Unicode to nls */
unilen = nls->uni2char(uni, &result[o], 1); unilen = nls->uni2char(uni, &result[o], in_len - o);
if (unilen < 0) { if (unilen < 0) {
goto conv_err; goto conv_err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment