]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/ins_wide.c
ncurses 5.6 - patch 20080209
[ncurses.git] / test / ins_wide.c
index c9c1a66cba2a8161504b16269140ac18a3ef6d7f..33dafe4fcd05d8117d72e20566a16d3c135a037a 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: ins_wide.c,v 1.8 2007/03/11 00:18:29 tom Exp $
+ * $Id: ins_wide.c,v 1.9 2007/07/21 17:41:55 tom Exp $
  *
  * Demonstrate the wins_wstr() and wins_wch functions.
  * Thomas Dickey - 2002/11/23
@@ -490,7 +490,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
 
     setlocale(LC_ALL, "");
 
-    while ((ch = getopt(argc, argv, "mn:w")) != EOF) {
+    while ((ch = getopt(argc, argv, "mn:w")) != -1) {
        switch (ch) {
        case 'm':
            m_opt = TRUE;