commit | e7942b9f2586fb15e1b898acc7c198ffd60aee4e | [log] [tgz] |
---|---|---|
author | Chuck Lever <chuck.lever@oracle.com> | Thu Apr 23 19:32:48 2009 -0400 |
committer | J. Bruce Fields <bfields@citi.umich.edu> | Tue Apr 28 13:54:29 2009 -0400 |
tree | eda6f5323a320ae59fe33f13b0c4bbd857eac7c6 | |
parent | 8435d34dbbe75678c3cdad3d53b1e7996a79b3bf [diff] |
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>