Module Name:    src
Committed By:   jmcneill
Date:           Wed Dec 13 21:37:10 UTC 2017

Modified Files:
        src/sys/arch/arm/sunxi: sunxi_thermal.c

Log Message:
Fix regression introduced in r1.2


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/sunxi/sunxi_thermal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sunxi_thermal.c
diff -u src/sys/arch/arm/sunxi/sunxi_thermal.c:1.3 src/sys/arch/arm/sunxi/sunxi_thermal.c:1.4
--- src/sys/arch/arm/sunxi/sunxi_thermal.c:1.3	Wed Nov  1 05:42:32 2017
+++ src/sys/arch/arm/sunxi/sunxi_thermal.c	Wed Dec 13 21:37:10 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_thermal.c,v 1.3 2017/11/01 05:42:32 kre Exp $ */
+/* $NetBSD: sunxi_thermal.c,v 1.4 2017/12/13 21:37:10 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2016-2017 Jared McNeill <jmcne...@invisible.ca>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.3 2017/11/01 05:42:32 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.4 2017/12/13 21:37:10 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -552,8 +552,8 @@ sunxi_thermal_attach(device_t parent, de
 		sc->data[i].private = i;
 		sc->data[i].units = ENVSYS_STEMP;
 		sc->data[i].state = ENVSYS_SINVALID;
-		strlcpy(sc->data[1].desc, sc->conf->sensors[i].desc,
-		    sizeof(sc->data[1].desc));
+		strlcpy(sc->data[i].desc, sc->conf->sensors[i].desc,
+		    sizeof(sc->data[i].desc));
 		sysmon_envsys_sensor_attach(sc->sme, &sc->data[i]);
 	}
 	sysmon_envsys_register(sc->sme);

Reply via email to