summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_printw.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-12-01 01:07:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-12-01 01:07:28 +0000
commit36fa37741601cbd51211345fe5966754c3dfb66c (patch)
treeb2460e447ee68a7662bc06160e09b331c52145ee /lib/libcurses/lib_printw.c
parentb581af3e6f467640ed98875baafba636b65e0ec4 (diff)
Fix typo, vnsprintf -> vsnprintf. Tsk tsk.
Diffstat (limited to 'lib/libcurses/lib_printw.c')
-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));
}