SHA256
1
0
forked from pool/ncurses
ncurses/ncurses-5.3-printw.dif
OBS User autobuild 44874ba07f Accepting request 24424 from Base:System
Copy from Base:System/ncurses based on submit request 24424 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24424
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ncurses?expand=0&rev=25
2009-11-16 08:52:55 +00:00

69 lines
1.8 KiB
Plaintext

Index: ncurses/base/lib_printw.c
===================================================================
--- ncurses/base/lib_printw.c.orig
+++ ncurses/base/lib_printw.c
@@ -48,10 +48,12 @@ printw(const char *fmt,...)
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);
@@ -68,10 +70,12 @@ wprintw(WINDOW *win, const char *fmt,...
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)"),
- win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
- va_end(argp);
+ win, _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
+ va_end(argq);
#endif
va_start(argp, fmt);
@@ -88,10 +92,12 @@ mvprintw(int y, int x, const char *fmt,.
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) {
@@ -109,10 +115,12 @@ mvwprintw(WINDOW *win, int y, int x, con
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)"),
- y, x, win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
- va_end(argp);
+ y, x, win, _nc_visbuf(fmt), _nc_varargs(fmt, argq)));
+ va_end(argq);
#endif
if ((code = wmove(win, y, x)) != ERR) {