diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-10-21 20:53:35 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-10-21 20:53:35 +0000 |
commit | 4aacdcb9c09d3d46709d0ed571d91534f64483f9 (patch) | |
tree | 38eaa5d5e37c695de1de34f78a3be2301848c148 | |
parent | 4fbd14553b61d0f72f634436fd970fca988d6a6e (diff) |
Fix copy bounds, however did this work??? Well it didn't.
Confirmed by nate@ and tedu@
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 32485466352..24aae0acc58 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.59 2003/10/21 17:05:16 drahn Exp $ */ +/* $OpenBSD: machdep.c,v 1.60 2003/10/21 20:53:34 drahn Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -1263,7 +1263,7 @@ __C(bus_space_copy_,BYTES)(void *v, bus_space_handle_t h1, \ dst = (TYPE *) (h2+o2); \ \ if (h1 == h2 && o2 > o1) \ - for (i = c; i > 0; i--) \ + for (i = c-1; i >= 0; i--) \ dst[i] = src[i]; \ else \ for (i = 0; i < c; i++) \ |