diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-01-31 22:26:04 +0000 |
---|---|---|
committer | <> | 2015-02-09 14:16:45 +0000 |
commit | f6d73a10a980bc78969c3af93665cbe7d06c3646 (patch) | |
tree | 83f9bf86268881f01478c2a7f8f5186b2c8db3d3 /ncurses/base/lib_scanw.c | |
parent | 280cceada215debbf561bcec9780630ddad28b37 (diff) | |
download | ncurses-f6d73a10a980bc78969c3af93665cbe7d06c3646.tar.gz |
Imported from /home/lorry/working-area/delta_ncurses/ncurses-5.9-20150131.tgz.ncurses-5.9-20150131
Diffstat (limited to 'ncurses/base/lib_scanw.c')
-rw-r--r-- | ncurses/base/lib_scanw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ncurses/base/lib_scanw.c b/ncurses/base/lib_scanw.c index a8621e6..637aa46 100644 --- a/ncurses/base/lib_scanw.c +++ b/ncurses/base/lib_scanw.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2001,2009 Free Software Foundation, Inc. * + * Copyright (c) 1998-2009,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,14 +40,14 @@ #include <curses.priv.h> -MODULE_ID("$Id: lib_scanw.c,v 1.12 2009/10/24 22:35:14 tom Exp $") +MODULE_ID("$Id: lib_scanw.c,v 1.13 2011/10/22 16:31:35 tom Exp $") NCURSES_EXPORT(int) vwscanw(WINDOW *win, NCURSES_CONST char *fmt, va_list argp) { char buf[BUFSIZ]; - if (wgetnstr(win, buf, sizeof(buf) - 1) == ERR) + if (wgetnstr(win, buf, (int) sizeof(buf) - 1) == ERR) return (ERR); return (vsscanf(buf, fmt, argp)); |