Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus fix off by one in zx_copyrect()
details: https://anonhg.NetBSD.org/src/rev/384c0a47fa28
branches: trunk
changeset: 750533:384c0a47fa28
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Jan 05 05:04:38 2010 +0000
description:
fix off by one in zx_copyrect()
diffstat:
sys/dev/sbus/zx.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 6ac3e662e99e -r 384c0a47fa28 sys/dev/sbus/zx.c
--- a/sys/dev/sbus/zx.c Tue Jan 05 04:17:49 2010 +0000
+++ b/sys/dev/sbus/zx.c Tue Jan 05 05:04:38 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zx.c,v 1.34 2010/01/05 04:17:49 macallan Exp $ */
+/* $NetBSD: zx.c,v 1.35 2010/01/05 05:04:38 macallan Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.34 2010/01/05 04:17:49 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.35 2010/01/05 05:04:38 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -862,6 +862,9 @@
{
uint32_t dir;
+ w -= 1;
+ h -= 1;
+
if (sy < dy || sx < dx) {
dir = 0x80000000;
sx += w;
Home |
Main Index |
Thread Index |
Old Index