From 269462ead552fb0799042db10532262130d8437f Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 14 Oct 2010 04:59:39 +0000 Subject: [PATCH] Fix uninitialized reference in xterm_dump_rectangle. --- src/microcode/x11term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microcode/x11term.c b/src/microcode/x11term.c index 00c91b884..a26d69ca9 100644 --- a/src/microcode/x11term.c +++ b/src/microcode/x11term.c @@ -288,7 +288,7 @@ xterm_dump_rectangle (struct xwindow * xw, unsigned int border = (XW_INTERNAL_BORDER_WIDTH (xw)); if ((signed_x < 0) || (((unsigned int) signed_x) < border)) { - width -= (border - x); + width -= (border - ((unsigned int) signed_x)); x = 0; } else @@ -297,7 +297,7 @@ xterm_dump_rectangle (struct xwindow * xw, width = ((XW_X_SIZE (xw)) - x); if ((signed_y < 0) || (((unsigned int) signed_y) < border)) { - height -= (border - y); + height -= (border - ((unsigned int) signed_y)); y = 0; } else -- 2.25.1