diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-04-30 20:45:45 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-05-01 00:49:23 +0000 |
commit | 18295796a30cada84e933d805072dc2248d54f98 (patch) | |
tree | 33bb2720165640fefc2987878a507d6797994891 /fs/jffs2 | |
parent | 9e39b0ae8af46c83b85dae7ff5251911a80fce5a (diff) |
cifs: fix length handling in cifs_get_name_from_search_buf
The earlier patch to move this code to use the new unicode helpers
assumed that the filename strings would be null terminated. That's not
always the case.
Instead of passing "max_len" to the string converter, pass "min(len,
max_len)", which makes it do the right thing while still keeping the
parser confined to the response. Also fix up the prototypes of this
function and the callers so that max_len is unsigned (like len is).
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions