Mercurial > emacs
changeset 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 | c9224a343630 |
children | 35972a1f8f1b |
files | src/xterm.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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)