diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-09-24 11:32:59 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-09-24 15:07:36 -0400 |
commit | 391e575556109744ae0aa198c1e245588a3ea76a (patch) | |
tree | 90980d20d071415ba7f601acd3139ae7121123bf /fs/cifs/cifsproto.h | |
parent | 7ce86d5a93ffe2542e6558a97ab055377df8cde3 (diff) |
cifs: remove NULL termination from rename target in CIFSSMBRenameOpenFIle
cifs: remove NULL termination from rename target in CIFSSMBRenameOpenFIle
The rename destination isn't supposed to be null terminated. Also,
change the name string arg to be const.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 014f26c7864f..0cff7fe986e8 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -231,7 +231,7 @@ extern int CIFSSMBRename(const int xid, struct cifsTconInfo *tcon, | |||
231 | const struct nls_table *nls_codepage, | 231 | const struct nls_table *nls_codepage, |
232 | int remap_special_chars); | 232 | int remap_special_chars); |
233 | extern int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon, | 233 | extern int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon, |
234 | int netfid, char *target_name, | 234 | int netfid, const char *target_name, |
235 | const struct nls_table *nls_codepage, | 235 | const struct nls_table *nls_codepage, |
236 | int remap_special_chars); | 236 | int remap_special_chars); |
237 | extern int CIFSCreateHardLink(const int xid, | 237 | extern int CIFSCreateHardLink(const int xid, |