summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max31730.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/max31730.c')
-rw-r--r--drivers/hwmon/max31730.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max31730.c b/drivers/hwmon/max31730.c
index 23598b8b8793..9bdff881f59c 100644
--- a/drivers/hwmon/max31730.c
+++ b/drivers/hwmon/max31730.c
@@ -399,7 +399,7 @@ static int max31730_detect(struct i2c_client *client,
return -ENODEV;
}
- strlcpy(info->type, "max31730", I2C_NAME_SIZE);
+ strscpy(info->type, "max31730", I2C_NAME_SIZE);
return 0;
}