From 211326e37501ac01a66994a221020b75ab5f63f0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 3 Dec 1997 05:21:47 +0000 Subject: Merge of ncurses-4.1-971129 --- lib/libcurses/lib_scanw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/libcurses/lib_scanw.c') diff --git a/lib/libcurses/lib_scanw.c b/lib/libcurses/lib_scanw.c index 2d61dfeab01..07c7a091b5e 100644 --- a/lib/libcurses/lib_scanw.c +++ b/lib/libcurses/lib_scanw.c @@ -1,3 +1,5 @@ +/* $OpenBSD: lib_scanw.c,v 1.3 1997/12/03 05:21:29 millert Exp $ */ + /*************************************************************************** * COPYRIGHT NOTICE * @@ -30,7 +32,7 @@ #include -MODULE_ID("Id: lib_scanw.c,v 1.4 1997/02/08 14:45:51 tom Exp $") +MODULE_ID("Id: lib_scanw.c,v 1.5 1997/08/30 23:49:19 tom Exp $") #if !HAVE_VSSCANF extern int vsscanf(const char *str, const char *format, ...); @@ -40,7 +42,7 @@ int vwscanw(WINDOW *win, const char *fmt, va_list argp) { char buf[BUFSIZ]; - if (wgetstr(win, buf) == ERR) + if (wgetnstr(win, buf, sizeof(buf)-1) == ERR) return(ERR); return(vsscanf(buf, fmt, argp)); -- cgit v1.2.3