git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[sfrench/cifs-2.6.git]
/
fs
/
fat
/
namei_vfat.c
diff --git
a/fs/fat/namei_vfat.c
b/fs/fat/namei_vfat.c
index 3a444b4e2368e71e44107cc1d51e55f5260cd778..a81eb2367d39a4f65b5e75b93c179ca1780601ae 100644
(file)
--- a/
fs/fat/namei_vfat.c
+++ b/
fs/fat/namei_vfat.c
@@
-512,7
+512,8
@@
xlate_to_uni(const unsigned char *name, int len, unsigned char *outname,
int charlen;
if (utf8) {
- *outlen = utf8s_to_utf16s(name, len, (wchar_t *)outname);
+ *outlen = utf8s_to_utf16s(name, len, UTF16_HOST_ENDIAN,
+ (wchar_t *) outname, FAT_LFN_LEN + 2);
if (*outlen < 0)
return *outlen;
else if (*outlen > FAT_LFN_LEN)