X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fins_wide.c;h=33dafe4fcd05d8117d72e20566a16d3c135a037a;hp=c9c1a66cba2a8161504b16269140ac18a3ef6d7f;hb=26522e4669dbf45cba32138b5d81c6c292e88e60;hpb=0be808514502f3149b379d036ab3a83cbb4d4c02 diff --git a/test/ins_wide.c b/test/ins_wide.c index c9c1a66c..33dafe4f 100644 --- a/test/ins_wide.c +++ b/test/ins_wide.c @@ -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;