]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - terminal.c
Check the x argument to check_boundary() more carefully.
[PuTTY.git] / terminal.c
index 7aafb58b0e7fb4256f5d8ce366960c5378109436..26a3f0c93f64b90228802ea6a50027a6500dd21d 100644 (file)
@@ -2344,7 +2344,7 @@ static void check_boundary(Terminal *term, int x, int y)
     termline *ldata;
 
     /* Validate input coordinates, just in case. */
-    if (x == 0 || x > term->cols)
+    if (x <= 0 || x > term->cols)
        return;
 
     ldata = scrlineptr(y);