diff options
author | Steve French <sfrench@us.ibm.com> | 2005-07-14 18:29:02 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-07-14 18:29:02 -0500 |
commit | f4cfd69cf349dd27e00d5cf804b57aee04e059c2 (patch) | |
tree | 9cf95e3f451814db89ab10a1e292b59f817bd00f /fs/cifs/misc.c | |
parent | d7245c2ccf14cde2023273c1ec246732d96e2c27 (diff) | |
download | op-kernel-dev-f4cfd69cf349dd27e00d5cf804b57aee04e059c2.zip op-kernel-dev-f4cfd69cf349dd27e00d5cf804b57aee04e059c2.tar.gz |
[CIFS] Fix path name conversion for long filenames when mapchars mount
option was specified at mount time.
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 072b4ee..20ae415 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -611,6 +611,7 @@ cifsConvertToUCS(__le16 * target, const char *source, int maxlen, src_char = source[i]; switch (src_char) { case 0: + target[j] = 0; goto ctoUCS_out; case ':': target[j] = cpu_to_le16(UNI_COLON); |