diff options
-rw-r--r-- | sys/dev/acpica/acpi_cmbat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c index a0c0feb..4c26305 100644 --- a/sys/dev/acpica/acpi_cmbat.c +++ b/sys/dev/acpica/acpi_cmbat.c @@ -93,7 +93,7 @@ static int acpi_cmbat_units = 0; default: \ goto label; \ } \ - dest[length-1] = '\0'; \ + dest[sizeof(dest)-1] = '\0'; \ } while(0) static void |