summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpibat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c
index 87e3ed2a69b..a01ee211648 100644
--- a/sys/dev/acpi/acpibat.c
+++ b/sys/dev/acpi/acpibat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpibat.c,v 1.22 2006/05/19 09:10:50 canacar Exp $ */
+/* $OpenBSD: acpibat.c,v 1.23 2006/06/06 22:14:30 jolan Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -149,7 +149,7 @@ acpibat_monitor(struct acpibat_softc *sc)
sc->sc_bif.bif_cap_granu1 = 1;
strlcpy(sc->sc_sens[0].desc, "last full capacity",
- sizeof(sc->sc_sens[2].desc));
+ sizeof(sc->sc_sens[0].desc));
sc->sc_sens[0].type = SENSOR_PERCENT;
sensor_add(&sc->sc_sens[0]);
sc->sc_sens[0].value = sc->sc_bif.bif_last_capacity /