summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-03 13:26:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-03 13:26:33 +0100
commitc597e6cd4cb4406878eae07c04ad420d8185d99e (patch)
treeb854a7e13568c5092001ca20195f631229d18865 /src
parent2d087eadd9cd3aa2e2ccd73a568286d21702d29a (diff)
sna: Fix iterator typo
Increment the iterator, not the end-stop. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 65d09b98..1eae9045 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3973,7 +3973,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
dx = -region.extents.x1;
dy = -region.extents.y1;
- for (i = 0; i < n; n++) {
+ for (i = 0; i < n; i++) {
assert(box[i].x1 + src_dx >= 0);
assert(box[i].y1 + src_dy >= 0);
assert(box[i].x2 + src_dx <= src_pixmap->drawable.width);