diff options
author | 2002-03-14 04:18:05 +0000 | |
---|---|---|
committer | 2002-03-14 04:18:05 +0000 | |
commit | c7f97ca93f4799715f957bdcb737cfd50143a7f1 (patch) | |
tree | 4f099d7b1960e7574774176ca7644760956041c7 | |
parent | Properly conditionalize uvm history dump (diff) | |
download | wireguard-openbsd-c7f97ca93f4799715f957bdcb737cfd50143a7f1.tar.xz wireguard-openbsd-c7f97ca93f4799715f957bdcb737cfd50143a7f1.zip |
Use getpropstringA instead of getpropstring to fetch magma_prom property
to avoid clobbering sa->sa_name (similiar fix as sparc)
-rw-r--r-- | sys/dev/sbus/magma.c | 6 |
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; |