diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-04-24 01:32:48 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-28 19:54:29 +0200 |
commit | e7942b9f2586fb15e1b898acc7c198ffd60aee4e (patch) | |
tree | eda6f5323a320ae59fe33f13b0c4bbd857eac7c6 /Documentation | |
parent | SUNRPC: pass buffer size to svc_sock_names() (diff) | |
download | linux-e7942b9f2586fb15e1b898acc7c198ffd60aee4e.tar.xz linux-e7942b9f2586fb15e1b898acc7c198ffd60aee4e.zip |
SUNRPC: Switch one_sock_name() to use snprintf()
Use snprintf() in one_sock_name() to prevent overflowing the output
buffer. If the name doesn't fit in the buffer, the buffer is filled
in with an empty string, and -ENAMETOOLONG is returned.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions