We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b723c commit 95504d5Copy full SHA for 95504d5
drivers/acpi/thermal.c
@@ -796,9 +796,9 @@ static int acpi_thermal_add(struct acpi_device *device)
796
return -ENOMEM;
797
798
tz->device = device;
799
- strcpy(tz->name, device->pnp.bus_id);
800
- strcpy(acpi_device_name(device), ACPI_THERMAL_DEVICE_NAME);
801
- strcpy(acpi_device_class(device), ACPI_THERMAL_CLASS);
+ strscpy(tz->name, device->pnp.bus_id);
+ strscpy(acpi_device_name(device), ACPI_THERMAL_DEVICE_NAME);
+ strscpy(acpi_device_class(device), ACPI_THERMAL_CLASS);
802
device->driver_data = tz;
803
804
acpi_thermal_aml_dependency_fix(tz);
0 commit comments