summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libcurses/lib_printw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/lib_printw.c b/lib/libcurses/lib_printw.c
index f35ce4a70ee..4e296624a94 100644
--- a/lib/libcurses/lib_printw.c
+++ b/lib/libcurses/lib_printw.c
@@ -40,7 +40,7 @@ char buf[BUFSIZ];
T(("printw(%s,...) called", _nc_visbuf(fmt)));
va_start(argp, fmt);
- vnsprintf(buf, sizeof buf, fmt, argp);
+ vsnprintf(buf, sizeof buf, fmt, argp);
va_end(argp);
return(waddstr(stdscr, buf));
}
@@ -55,7 +55,7 @@ char buf[BUFSIZ];
T(("wprintw(%p,%s,...) called", win, _nc_visbuf(fmt)));
va_start(argp, fmt);
- vnsprintf(buf, sizeof buf, fmt, argp);
+ vsnprintf(buf, sizeof buf, fmt, argp);
va_end(argp);
return(waddstr(win, buf));
}