diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-04-30 06:46:15 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-04-30 11:44:59 -0400 |
commit | 7fabf0c9479fef9fdb9528a5fbdb1cb744a744a4 (patch) | |
tree | a44ab17abeefb87a623d62c344d4aa4b4f1a4b7f /fs/cifs/cifs_unicode.h | |
parent | 66345f50f070ae7412a28543ee197cb5eff73598 (diff) |
cifs: add replacement for cifs_strtoUCS_le called cifs_from_ucs2
Add a replacement function for cifs_strtoUCS_le. cifs_from_ucs2
takes args for the source and destination length so that we can ensure
that the function is confined within the intended buffers.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_unicode.h')
-rw-r--r-- | fs/cifs/cifs_unicode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h index d6fe8ecd1ffc..6aa6533e49fa 100644 --- a/fs/cifs/cifs_unicode.h +++ b/fs/cifs/cifs_unicode.h | |||
@@ -72,6 +72,8 @@ extern struct UniCaseRange UniLowerRange[]; | |||
72 | #endif /* UNIUPR_NOLOWER */ | 72 | #endif /* UNIUPR_NOLOWER */ |
73 | 73 | ||
74 | #ifdef __KERNEL__ | 74 | #ifdef __KERNEL__ |
75 | int cifs_from_ucs2(char *to, const __le16 *from, int tolen, int fromlen, | ||
76 | const struct nls_table *codepage, bool mapchar); | ||
75 | int cifs_strfromUCS_le(char *, const __le16 *, int, const struct nls_table *); | 77 | int cifs_strfromUCS_le(char *, const __le16 *, int, const struct nls_table *); |
76 | int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *); | 78 | int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *); |
77 | #endif | 79 | #endif |