diff options
Diffstat (limited to 'fs/cifs/cifs_unicode.c')
-rw-r--r-- | fs/cifs/cifs_unicode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c index 99a096d3f84d..4e12053f0806 100644 --- a/fs/cifs/cifs_unicode.c +++ b/fs/cifs/cifs_unicode.c | |||
@@ -74,10 +74,11 @@ cifs_strtoUCS(wchar_t * to, const char *from, int len, | |||
74 | cERROR(1, | 74 | cERROR(1, |
75 | ("cifs_strtoUCS: char2uni returned %d", | 75 | ("cifs_strtoUCS: char2uni returned %d", |
76 | charlen)); | 76 | charlen)); |
77 | to[i] = cpu_to_le16(0x003f); /* a question mark */ | 77 | /* A question mark */ |
78 | to[i] = (wchar_t)cpu_to_le16(0x003f); | ||
78 | charlen = 1; | 79 | charlen = 1; |
79 | } else | 80 | } else |
80 | to[i] = cpu_to_le16(to[i]); | 81 | to[i] = (wchar_t)cpu_to_le16(to[i]); |
81 | 82 | ||
82 | } | 83 | } |
83 | 84 | ||