Fix breakage in window redraw
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jan 1999 11:28:11 +0000 (11:28 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jan 1999 11:28:11 +0000 (11:28 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@14 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index feec70a..a935be7 100644 (file)
@@ -1254,8 +1254,8 @@ void term_paint (Context ctx, int l, int t, int r, int b) {
     right = (r - 1) / font_width;
     top = t / font_height;
     bottom = (b - 1) / font_height;
-    for (i = top; i <= bottom && j<rows ; i++)
-      for (j = left; j <= right && j<cols ; j++)
+    for (i = top; i <= bottom && i < rows ; i++)
+      for (j = left; j <= right && j < cols ; j++)
            disptext[i*(cols+1)+j] = ATTR_INVALID;
 
     do_paint (ctx, FALSE);