diff options
author | Jolan Luff <jolan@cvs.openbsd.org> | 2006-06-06 22:14:31 +0000 |
---|---|---|
committer | Jolan Luff <jolan@cvs.openbsd.org> | 2006-06-06 22:14:31 +0000 |
commit | 50fcf7a83cc8bd3237c3feba466e09233d802b37 (patch) | |
tree | fb2293eab26d409b377a143a09bae12bba1b5fa4 /sys/dev/acpi | |
parent | 1eac8c69bc807afca599a300baee3e30a3f3d479 (diff) |
fix a bad strlcpy, from ben lovett
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpibat.c | 4 |
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 / |