Mercurial > emacs
diff src/xterm.c @ 20488:fd12a2180159
(x_display_cursor): Abort if X or Y is out of range.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sun, 21 Dec 1997 01:59:49 +0000 |
| parents | 8e58003a8d02 |
| children | 5a2caaffa7a5 |
line wrap: on
line diff
--- a/src/xterm.c Sun Dec 21 01:57:48 1997 +0000 +++ b/src/xterm.c Sun Dec 21 01:59:49 1997 +0000 @@ -4902,6 +4902,10 @@ { BLOCK_INPUT; + if ((unsigned) x >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f) + || (unsigned) y >= FRAME_HEIGHT (f)) + abort (); + if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor) x_display_box_cursor (f, on, x, y); else if (FRAME_DESIRED_CURSOR (f) == bar_cursor)
