From: Chuck Lever Date: Thu, 23 Apr 2009 23:32:48 +0000 (-0400) Subject: SUNRPC: Switch one_sock_name() to use snprintf() X-Git-Tag: v2.6.31-rc1~57^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7942b9f2586fb15e1b898acc7c198ffd60aee4e;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed