diff options
author | Suresh Jayaraman <[email protected]> | 2009-04-20 18:54:21 +0530 |
---|---|---|
committer | Steve French <[email protected]> | 2009-04-20 19:58:06 +0000 |
commit | 968460ebd8006d55661dec0fb86712b40d71c413 (patch) | |
tree | df76b9f2928e4c347a79a9837815d4a5a6e8c7cf /net/lapb/lapb_in.c | |
parent | ff6945279d45edd8f6b0a5ddb1ef16cecce3ea9c (diff) |
cifs: Rename cifs_strncpy_to_host and fix buffer size
There is a possibility for the path_name and node_name buffers to
overflow if they contain charcters that are >2 bytes in the local
charset. Resize the buffer allocation so to avoid this possibility.
Also, as pointed out by Jeff Layton, it would be appropriate to
rename the function to cifs_strlcpy_to_host to reflect the fact
that the copied string is always NULL terminated.
Signed-off-by: Suresh Jayaraman <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions