summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-05-17 21:59:45 +0000
committernicm <nicm@openbsd.org>2010-05-17 21:59:45 +0000
commit79756d5e4ee809b530a25c70dd56ec7a0b82a10a (patch)
tree3c91c5027f55fcdb7df0484dac3dd8d7ae068104
parentalways provide "includes" target (diff)
downloadwireguard-openbsd-79756d5e4ee809b530a25c70dd56ec7a0b82a10a.tar.xz
wireguard-openbsd-79756d5e4ee809b530a25c70dd56ec7a0b82a10a.zip
Put the name string on the stack.
Fixes build with gcc4 which otherwise optimises away the modifications to it, discovered by jakemsr@. ok marco jsg
-rw-r--r--sys/dev/acpi/atk0110.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/atk0110.c b/sys/dev/acpi/atk0110.c
index 2a2e698ad2c..8b371d0a9bc 100644
--- a/sys/dev/acpi/atk0110.c
+++ b/sys/dev/acpi/atk0110.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atk0110.c,v 1.3 2010/02/26 17:24:11 deraadt Exp $ */
+/* $OpenBSD: atk0110.c,v 1.4 2010/05/17 21:59:45 nicm Exp $ */
/*
* Copyright (c) 2009 Constantine A. Murenin <cnst+openbsd@bugmail.mojo.ru>
@@ -131,7 +131,7 @@ aibs_attach_sif(struct aibs_softc *sc, enum sensor_type st)
struct aml_value res;
struct aml_value **v;
int i, n;
- char *name = "?SIF";
+ char name[] = "?SIF";
struct aibs_sensor *as;
switch (st) {