summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnc.c b/vnc.c
index 4235442..75e4c0c 100644
--- a/vnc.c
+++ b/vnc.c
@@ -268,7 +268,7 @@ static void vnc_dpy_update(DisplayState *ds, int x, int y, int w, int h)
x = MIN(x, vs->width);
y = MIN(y, vs->height);
w = MIN(x + w, vs->width) - x;
- h = MIN(y + h, vs->height) - y;
+ h = MIN(h, vs->height);
for (; y < h; y++)
for (i = 0; i < w; i += 16)
OpenPOWER on IntegriCloud