diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-03 05:21:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-03 05:21:47 +0000 |
commit | 211326e37501ac01a66994a221020b75ab5f63f0 (patch) | |
tree | 6d6c7182f1034b1b04c98386a1c3ba44e8accd5f /lib/libcurses/lib_move.c | |
parent | 7c742f381e7808d0b12c17b534305751f3ebb0cb (diff) |
Merge of ncurses-4.1-971129
Diffstat (limited to 'lib/libcurses/lib_move.c')
-rw-r--r-- | lib/libcurses/lib_move.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libcurses/lib_move.c b/lib/libcurses/lib_move.c index 3799bb57a8a..095c7d40043 100644 --- a/lib/libcurses/lib_move.c +++ b/lib/libcurses/lib_move.c @@ -1,3 +1,5 @@ +/* $OpenBSD: lib_move.c,v 1.3 1997/12/03 05:21:23 millert Exp $ */ + /*************************************************************************** * COPYRIGHT NOTICE * @@ -29,15 +31,16 @@ #include <curses.priv.h> -MODULE_ID("Id: lib_move.c,v 1.6 1997/02/02 00:00:47 tom Exp $") +MODULE_ID("Id: lib_move.c,v 1.7 1997/09/20 15:02:34 juergen Exp $") int wmove(WINDOW *win, int y, int x) { T((T_CALLED("wmove(%p,%d,%d)"), win, y, x)); - if (x >= 0 && x <= win->_maxx && - y >= 0 && y <= win->_maxy) + if (win && + x >= 0 && x <= win->_maxx && + y >= 0 && y <= win->_maxy) { win->_curx = (short)x; win->_cury = (short)y; |