From: Jim Meyering Date: Tue, 21 Aug 2012 07:20:49 +0000 (+0200) Subject: fs/9p: avoid debug OOPS when reading a long symlink X-Git-Tag: v3.7-rc1~49^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494;p=pandora-kernel.git fs/9p: avoid debug OOPS when reading a long symlink Reading a symlink longer than the given buffer, a p9_debug use would try to print the link name (not NUL-terminated) using a %s format. Use %.*s instead, and replace the strncpy+strnlen with functionally equivalent strlen+memcpy. Signed-off-by: Jim Meyering Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed