diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 1ca0ea77115b..75f39f2c166d 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -362,8 +362,8 @@ static int extract_package(struct acpi_battery *battery, | |||
362 | strncpy(ptr, element->string.pointer, 32); | 362 | strncpy(ptr, element->string.pointer, 32); |
363 | else if (element->type == ACPI_TYPE_INTEGER) { | 363 | else if (element->type == ACPI_TYPE_INTEGER) { |
364 | strncpy(ptr, (u8 *)&element->integer.value, | 364 | strncpy(ptr, (u8 *)&element->integer.value, |
365 | sizeof(acpi_integer)); | 365 | sizeof(u64)); |
366 | ptr[sizeof(acpi_integer)] = 0; | 366 | ptr[sizeof(u64)] = 0; |
367 | } else | 367 | } else |
368 | *ptr = 0; /* don't have value */ | 368 | *ptr = 0; /* don't have value */ |
369 | } else { | 369 | } else { |