aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2012-06-18 22:30:51 -0700
committerGuenter Roeck <[email protected]>2012-07-21 21:48:44 -0700
commit0ef63e48f0247a9f9b9ffeef0f2641ac880728ab (patch)
treed26df8fe26b65b86669bb7efb3867d1b66a18fdc /net/lapb/lapb_in.c
parente2730bea0b9951cb8ec0732045f59eea360f5e7c (diff)
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 <[email protected]> Acked-by: Jean Delvare <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions