summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-03-14 04:18:06 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-03-14 04:18:06 +0000
commit76c73236d1053db23e8fd3e2fa035d46b6910b87 (patch)
tree339b2f3a73db36bf8dbfdd9d3c64956f39fe65d0 /sys/dev/sbus
parentc2dab76ecdef6aaba5a202ac00d286cfb2ea6336 (diff)
Use getpropstringA instead of getpropstring to fetch magma_prom property
to avoid clobbering sa->sa_name (similiar fix as sparc)
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/magma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c
index 39adbe7b46b..7e749d212e5 100644
--- a/sys/dev/sbus/magma.c
+++ b/sys/dev/sbus/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.4 2002/01/25 02:37:43 jason Exp $ */
+/* $OpenBSD: magma.c,v 1.5 2002/03/14 04:18:05 jason Exp $ */
/*
* magma.c
*
@@ -328,10 +328,10 @@ magma_attach(parent, dev, aux)
struct sbus_attach_args *sa = aux;
struct magma_softc *sc = (struct magma_softc *)dev;
struct magma_board_info *card;
- char *magma_prom, *clockstr;
+ char magma_prom[40], *clockstr;
int chip, cd_clock;
- magma_prom = getpropstring(sa->sa_node, "magma_prom");
+ getpropstringA(sa->sa_node, "magma_prom", magma_prom);
for (card = supported_cards; card->mb_name != NULL; card++) {
if (strcmp(sa->sa_name, card->mb_sbusname) != 0)
continue;