From: Guenter Roeck Date: Tue, 19 Jun 2012 05:30:51 +0000 (-0700) Subject: hwmon: (ntc_thermistor) Ensure that data->name string is terminated X-Git-Tag: v3.6-rc1~120^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ef63e48f0247a9f9b9ffeef0f2641ac880728ab;p=pandora-kernel.git hwmon: (ntc_thermistor) Ensure that data->name string is terminated Fix Coverity warning: Calling strncpy with a maximum size argument of 20 bytes on destination array "data->name" of size 20 bytes might leave the destination string unterminated. Fix by replacing strncpy() with strlcpy() and by using sizeof() to determine the maximum string length. Signed-off-by: Guenter Roeck Acked-by: Jean Delvare --- Reading git-diff-tree failed