X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=terminal.c;h=26a3f0c93f64b90228802ea6a50027a6500dd21d;hb=145ecf611238c4f1e39d89d3eee40319a2c54fe8;hp=7aafb58b0e7fb4256f5d8ce366960c5378109436;hpb=e3fe709a8f6a633647088e9ed7264be5fb740426;p=PuTTY.git diff --git a/terminal.c b/terminal.c index 7aafb58b..26a3f0c9 100644 --- a/terminal.c +++ b/terminal.c @@ -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);