2010-01-14 15:17:59 +01:00
|
|
|
--- ncurses/base/lib_printw.c
|
|
|
|
+++ ncurses/base/lib_printw.c 2010-01-12 10:51:29.975429869 +0100
|
2009-11-16 09:52:55 +01:00
|
|
|
@@ -48,10 +48,12 @@ printw(const char *fmt,...)
|
2006-12-19 00:17:11 +01:00
|
|
|
int code;
|
|
|
|
|
|
|
|
#ifdef TRACE
|
|
|
|
- va_start(argp, fmt);
|
|
|
|
+ va_list argq;
|
|
|
|
+ va_copy(argq, argp);
|
|
|
|
+ va_start(argq, fmt);
|
|
|
|
T((T_CALLED("printw(%s%s)"),
|
|
|
|
- _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
|
|
|
|
- va_end(argp);
|
|
|
|
+ _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
|
|
|
|
+ va_end(argq);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
va_start(argp, fmt);
|
2009-11-16 09:52:55 +01:00
|
|
|
@@ -68,10 +70,12 @@ wprintw(WINDOW *win, const char *fmt,...
|
2006-12-19 00:17:11 +01:00
|
|
|
int code;
|
|
|
|
|
|
|
|
#ifdef TRACE
|
|
|
|
- va_start(argp, fmt);
|
|
|
|
+ va_list argq;
|
|
|
|
+ va_copy(argq, argp);
|
|
|
|
+ va_start(argq, fmt);
|
|
|
|
T((T_CALLED("wprintw(%p,%s%s)"),
|
2010-01-14 15:17:59 +01:00
|
|
|
- (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
|
2006-12-19 00:17:11 +01:00
|
|
|
- va_end(argp);
|
2010-01-14 15:17:59 +01:00
|
|
|
+ (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
|
2006-12-19 00:17:11 +01:00
|
|
|
+ va_end(argq);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
va_start(argp, fmt);
|
2009-11-16 09:52:55 +01:00
|
|
|
@@ -88,10 +92,12 @@ mvprintw(int y, int x, const char *fmt,.
|
2006-12-19 00:17:11 +01:00
|
|
|
int code;
|
|
|
|
|
|
|
|
#ifdef TRACE
|
|
|
|
- va_start(argp, fmt);
|
|
|
|
+ va_list argq;
|
|
|
|
+ va_copy(argq, argp);
|
|
|
|
+ va_start(argq, fmt);
|
|
|
|
T((T_CALLED("mvprintw(%d,%d,%s%s)"),
|
|
|
|
- y, x, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
|
|
|
|
- va_end(argp);
|
|
|
|
+ y, x, _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
|
|
|
|
+ va_end(argq);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if ((code = move(y, x)) != ERR) {
|
2009-11-16 09:52:55 +01:00
|
|
|
@@ -109,10 +115,12 @@ mvwprintw(WINDOW *win, int y, int x, con
|
2006-12-19 00:17:11 +01:00
|
|
|
int code;
|
|
|
|
|
|
|
|
#ifdef TRACE
|
|
|
|
- va_start(argp, fmt);
|
|
|
|
+ va_list argq;
|
|
|
|
+ va_copy(argq, argp);
|
|
|
|
+ va_start(argq, fmt);
|
|
|
|
T((T_CALLED("mvwprintw(%d,%d,%p,%s%s)"),
|
2010-01-14 15:17:59 +01:00
|
|
|
- y, x, (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
|
2006-12-19 00:17:11 +01:00
|
|
|
- va_end(argp);
|
2010-01-14 15:17:59 +01:00
|
|
|
+ y, x, (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
|
2006-12-19 00:17:11 +01:00
|
|
|
+ va_end(argq);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if ((code = wmove(win, y, x)) != ERR) {
|