SUNRPC: Switch one_sock_name() to use snprintf()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 23 Apr 2009 23:32:48 +0000 (19:32 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 28 Apr 2009 17:54:29 +0000 (13:54 -0400)
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>

No differences found