aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ntc_thermistor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ntc_thermistor.c')
-rw-r--r--drivers/hwmon/ntc_thermistor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index 6da9696e1827..74a6c58d0218 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -351,7 +351,7 @@ static int __devinit ntc_thermistor_probe(struct platform_device *pdev)
351 351
352 data->dev = &pdev->dev; 352 data->dev = &pdev->dev;
353 data->pdata = pdata; 353 data->pdata = pdata;
354 strncpy(data->name, pdev->id_entry->name, PLATFORM_NAME_SIZE); 354 strlcpy(data->name, pdev->id_entry->name, sizeof(data->name));
355 355
356 switch (pdev->id_entry->driver_data) { 356 switch (pdev->id_entry->driver_data) {
357 case TYPE_NCPXXWB473: 357 case TYPE_NCPXXWB473: