bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in mvwprintw


From: Thomas Dickey
Subject: Re: bug in mvwprintw
Date: Sun, 14 Oct 2001 11:16:09 -0400
User-agent: Mutt/1.2.5i

On Sat, Oct 13, 2001 at 08:09:40PM -0700, Mike Castle wrote:
> 
> It may be worth while to check of other similar errors.

will do that (it seems to be the only one).  I don't think I
would notice this one immediately, but it is exercised in testcurs.c
I had in my to-do list to go back and improve the traces.

> No regression testing for this function?
> 
> mrc
> 
> diff -ru ncurses-5.2-20011013.orig/ncurses/base/lib_printw.c 
> ncurses-5.2-20011013/ncurses/base/lib_printw.c
> --- ncurses-5.2-20011013.orig/ncurses/base/lib_printw.c       Sat Oct 13 
> 19:59:38 2001
> +++ ncurses-5.2-20011013/ncurses/base/lib_printw.c    Sat Oct 13 20:08:15 2001
> @@ -79,7 +79,7 @@
>  
>      T((T_CALLED("mvprintw(%d,%d,%s,...)"), y, x, _nc_visbuf(fmt)));
>  
> -    if ((code = move(y, x)) != ERR) {
> +    if ((code = move(win, y, x)) != ERR) {
       if ((code = wmove(win, y, x)) != ERR) {

(aside from feeling stupid, there's nothing I can add)

>       va_start(argp, fmt);
>       code = vwprintw(stdscr, fmt, argp);
>       va_end(argp);
> 
> -- 
>      Mike Castle      address@hidden      www.netcom.com/~dalgoda/
>     We are all of us living in the shadow of Manhattan.  -- Watchmen
> fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]