From 76c73236d1053db23e8fd3e2fa035d46b6910b87 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 14 Mar 2002 04:18:06 +0000 Subject: Use getpropstringA instead of getpropstring to fetch magma_prom property to avoid clobbering sa->sa_name (similiar fix as sparc) --- sys/dev/sbus/magma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/sbus') 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; -- cgit v1.2.3